ash init
Create a new configuration file with sensible defaults.
Usage
uv run ash init [OPTIONS]Options
| Option | Description |
|---|---|
--path, -p | Custom config file path (default: ~/.ash/config.toml) |
--help | Show help message |
Examples
Create default config file:
uv run ash initCreate config at custom path:
uv run ash init --path ~/my-ash-config.tomlBehavior
- Creates
~/.ash/config.toml(or specified path) - Fails if config already exists (use
--pathfor different location) - Generates a template with commented examples
- After creation, add your API key and run
ash upgrade
What’s Created
The generated config includes:
# API Keys - set these or use environment variables[anthropic]# api_key = "sk-ant-..."
[openai]# api_key = "sk-..."
# Default model configuration[models.default]provider = "anthropic"model = "claude-haiku-4-5"
# Optional: More capable model for complex tasks# [models.sonnet]# provider = "anthropic"# model = "claude-sonnet-4-5"
# See docs for more configuration optionsNext Steps
After running ash init:
- Edit
~/.ash/config.tomland add your API keys - Run
uv run ash upgradeto set up the database and sandbox - Start chatting with
uv run ash chat