Configuration basics and models
Configure one model to start a conversation, then add Skills, plugins, or external services as your tasks require. Change settings on the Server machine; the control plane does not provide a configuration-editing REST API.
| What you need now | Start here |
|---|---|
| Install and ask the first question | Quick start, or configure and verify an installed instance below |
| Use an existing capability | Add capabilities when needed: Skills, plugins, MCP, SemanticLayer, and data inputs |
| Understand overrides and inheritance | Configuration selection and merging; you do not need to read it before starting |
Where settings live
| File | Purpose |
|---|---|
<home>/config.yaml |
Product configuration; Home defaults to ~/.dataagent |
<home>/.env |
Values referenced by YAML, such as model names, addresses, and keys |
Repository-root .env |
Preloaded by source launchers such as npm run start and ./deploy.sh |
Set DATAAGENT_HOME in the launching process environment to choose Home. --config selects the product YAML and --env-file independently selects the environment file. An explicit --config does not merge with Home config.yaml; omitted product fields use program defaults. Nonempty process values override matching environment-file values. A field uses them only through an explicit $env{NAME} reference.
See Home files for locations and purposes, and file selection rules for the complete order.
Configure the first model
Save this as <home>/config.yaml. Omitting dataagent.model uses the model alias primary. This is the configuration ID below; name is the provider's actual model name.
schema_version: 4
models:
primary:
provider: openai
name: $env{LLM_MODEL}
base_url: $env{LLM_BASE_URL}
api_key: $env{LLM_API_KEY}Set the corresponding values in <home>/.env:
LLM_MODEL=your-model-name
LLM_BASE_URL=https://your-openai-compatible-host/v1
LLM_API_KEY=replace-with-your-keyUse provider: openai for OpenAI-compatible services too. Set base_url to the API root required by the provider, commonly ending in /v1. See the complete minimal template and model fields. Keep real keys in environment files or process variables, outside version control.
Start and verify the configuration
After preparing the source environment with the deployment guide, start from the repository root:
uv run --no-sync dataagent serveFor an independently installed Server wheel, run dataagent serve. Select files elsewhere with dataagent serve --config /absolute/path/config.yaml --env-file /absolute/path/model.env, prefixed with uv run --no-sync in the source environment. The two files are selected independently; Home still determines session state and user extensions.
This example omits server, so it listens on 127.0.0.1:8790. Keep Server running and check from another terminal:
curl --fail --silent --show-error http://127.0.0.1:8790/healthz
curl --fail --silent --show-error http://127.0.0.1:8790/readyInspect data.conversation for the model, Home, and plugins. A successful /ready reports service readiness; ask a real question to verify the model connection. See health and identity for the response.
With an installed TUI, connect using dataagent-cli --runtime-url http://127.0.0.1:8790. For a source TUI, build it using the TUI guide, then run:
npm run start:tui -- --runtime-url http://127.0.0.1:8790Ask “Describe what you can do in three sentences” and confirm a normal response. Clients attached to an existing Server use its settings. For failures, inspect logs and model troubleshooting. With managed Linux deployment, follow the quick start: change the repository-root .env and run ./deploy.sh restart.
Add capabilities when needed
Only the model connection is required for the first conversation described here. Choose capabilities for the task rather than configuring all of them:
| Task | Configuration or files | Guide |
|---|---|---|
| Read local materials | dataagent.input_workspaces pointing to existing read-only directories |
Data inputs |
| Use an existing Skill | <home>/skills/<name>/SKILL.md; standalone Skills need no enabled plugin |
Use Skills |
| Use an existing plugin | Install or locate it, then set plugins.enabled and its parameters |
Install and configure plugins |
| Call existing MCP tools | .mcp.yaml in Home or an enabled plugin root |
MCP configuration and integration |
| Query enterprise semantic metadata | Product YAML semantic plus task-specific business parameters |
SemanticLayer integration |
| Query a database and generate CSV | Enable nl2sql and configure its business database and schema |
Dedicated NL2SQL queries, parent/subagent analysis |
MCP and SemanticLayer are optional by default. Without semantic, the runtime creates no semantic client. NL2SQL database access over MCP uses the plugin's own database settings. When writing new tools, Hooks, or subagents, continue with extension development.
Common changes and restarts
| Change | Setting and activation |
|---|---|
| Default model | Define an ID under models, set dataagent.model, and restart; there is no automatic fallback |
| Listener | Change server.host or server.port in the selected YAML, restart, and update the TUI URL |
| Execution limits | Set server.run_timeout_seconds for the Server execution deadline and dataagent.limits for per-agent model and tool call counts. Direct Python SDK callers control the overall deadline |
| Inputs | Change dataagent.input_workspaces and restart; resumed sessions retain saved bindings |
| Output root | Change dataagent.output_root and restart; this affects new sessions only |
| Compiled entry | Change dataagent.entry, restart, and use a new session; see entry mode |
For example, put new session outputs under ~/reports/<user>/<thread>/:
dataagent:
output_root: ~/reportsoutput_root must be absolute or start with ~/. Omit it or use null for <home>/outputs. The resolved location is stored in sessions.sqlite session_bindings; creating a session fails if its derived directory contains unowned files. The SDK can set a final output_dir for one task. See sessions and outputs and SDK task outputs.
Restart after changing models, service addresses, ports, Home, inputs, or dataagent.entry. Plugin, Skill, Hook, and MCP declarations can refresh before the next turn within the extension lifecycle boundaries. For a repeatable check, restart and test with a new session.
Configuration merging and precedence
Select one product YAML. Plugin business defaults can participate in merging, with explicit product values applied last. The full rules and original five-source example now live in configuration selection and merging. Follow the precise section for an existing chapter link:
| Question | Detailed explanation |
|---|---|
| Which files participate? | Product, Home, and environment-file selection |
| What does each YAML control? | Product, plugin, defaults, subagent, and MCP files |
| What is the dependency/layer order? | Load dependencies before parameter layers |
| Where is the full example? | Derive the final values from five sources |
| How do objects, lists, nulls, and Hooks merge? | Recursive overrides, replacement, and Hook appends |
| Where do relative paths resolve? | Keep each path's declaring source |
| When are environment references resolved? | Expansion, validation, and inspecting effective settings |
Settings in other files
MCP connections live in .mcp.yaml. Plugin tools, Skills, and subagents are referenced by .plugin.yaml; standalone Skills live in Home skills/. See CLI and environment for TUI display settings and client logs, and the configuration reference for field definitions, defaults, and errors.