Skip to content

Configuration

All configuration lives in a .env file in the Wilson project root. Copy env.example to get started:

Terminal window
cp env.example .env

Set at least one provider API key. Wilson uses prefix-based routing to determine which provider handles a model:

ProviderPrefixEnvironment Variable
OpenAIgpt-OPENAI_API_KEY
Anthropicclaude-ANTHROPIC_API_KEY
Googlegemini-GOOGLE_API_KEY
xAIgrok-XAI_API_KEY
Moonshotkimi-MOONSHOT_API_KEY
DeepSeekdeepseek-DEEPSEEK_API_KEY
OpenRouteropenrouter:OPENROUTER_API_KEY
LiteLLMlitellm:LITELLM_API_KEY
Ollamaollama:None (local)

Switch providers at any time during a session with the /model command.

Enable web search for merchant research and financial questions:

Terminal window
EXA_API_KEY=...
PERPLEXITY_API_KEY=...
TAVILY_API_KEY=...
BRAVE_API_KEY=...

Only one is needed. Wilson will use whichever key is available.

Terminal window
OLLAMA_BASE_URL=http://localhost:11434 # default

Wilson stores all data in ~/.agentwilson/:

~/.agentwilson/
├── data.db # SQLite database (all transactions)
├── mcp.json # MCP server configuration
└── skills/ # User-installed skills

The database is a single SQLite file. Back it up by copying data.db.

Add external tool servers in ~/.agentwilson/mcp.json:

{
"servers": {
"my-server": {
"command": "npx",
"args": ["-y", "my-mcp-server"],
"env": {}
}
}
}

MCP tools appear automatically in Wilson’s tool registry. See MCP Integration for details.

Drop a folder with a SKILL.md file into any of these directories:

LocationPurpose
src/skills/Built-in skills (shipped with Wilson)
~/.agentwilson/skills/User-wide skills
.agentwilson/skills/Project-specific skills

Skills defined later in this list override earlier ones with the same name. See Custom Skills for the full guide.