Kimaki supports multiple AI models and agents. You can set defaults in your project configuration, then override per channel or session using Discord commands.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/remorses/kimaki/llms.txt
Use this file to discover all available pages before exploring further.
Model Configuration
Default Model (opencode.json)
Set the default model in your project’sopencode.json:
provider/model-name
Available Models
Kimaki supports models from multiple providers: Anthropic:anthropic/claude-sonnet-4-20250514- Claude Sonnet 4 (balanced, fast)anthropic/claude-opus-4-20250514- Claude Opus 4 (most capable, slower)anthropic/claude-3-5-sonnet-20241022- Claude 3.5 Sonnet (legacy)
openai/gpt-4o- GPT-4o (vision, function calling)openai/gpt-4-turbo- GPT-4 Turboopenai/o1- OpenAI o1 (reasoning model)
google/gemini-2.5-pro- Gemini 2.5 Progoogle/gemini-2.0-flash-exp- Gemini 2.0 Flash (experimental)
- Kimaki supports any provider configured in OpenCode
- Use
/loginto connect additional providers
Model Selection Priority
Kimaki resolves models in this order (highest to lowest priority):- Session override - Set with
/modelin a thread - Agent model - Model specified in agent configuration
- Channel override - Set with
/modelin a text channel - Global default - Set with
/model(global scope) - OpenCode config -
modelfield inopencode.json - OpenCode recent - Last model used in OpenCode CLI
- Provider default - Default model for the connected provider
Agent Configuration
Agents are pre-configured AI personas with specific models, prompts, and behaviors.Create an Agent
Create agent files in.opencode/agent/ directory:
build.md
plan.md
Agent Frontmatter
Required:model- Model to use for this agent (e.g.,anthropic/claude-sonnet-4-20250514)mode- Agent mode (primaryfor main agents,supportfor specialized tasks)
description- Short description shown in/agentmenuhidden- Set totrueto hide from/agentmenu
Agent Modes
primary - General-purpose agents shown in /agent command:
- Use for common workflows (build, test, plan, debug)
- Shown in agent selection menus
- Automatically registered as quick commands (e.g.,
/build-agent)
all - Agents available in all contexts:
- Similar to
primarybut with broader scope - Shown in all agent menus
support - Specialized agents:
- Used for specific tasks or internal workflows
- Hidden from main menus unless explicitly called
Discord Commands
/model - Select Model
Open an interactive menu to choose a model:
Session-level overrides only appear when running
/model inside a thread with an active session./agent - Select Agent
Switch to a different agent:
When you switch agents:
- The session model is cleared (agent’s model takes effect)
- The new agent’s prompt and behavior apply to future messages
- Previous messages remain unchanged
Quick Agent Commands
Each agent automatically registers a quick command:/build-agent- Switch to “build” agent/plan-agent- Switch to “plan” agent/debug-agent- Switch to “debug” agent
/unset-model-override - Remove Override
Clear the model override for a channel:
Model Variants (Thinking Levels)
Some models support “thinking” or reasoning variants:- Claude:
high,medium,low - OpenAI o1: Extended thinking time
/model, Kimaki prompts for a thinking level if available:
Connecting Providers
/login - Add Provider Credentials
Connect to AI providers to use their models:
Supported Providers:
- Anthropic - OAuth or API key
- OpenAI - OAuth or API key
- Google - API key (Gemini models)
- Other - Any provider supported by OpenCode
Credentials are stored in OpenCode’s secure credential store, not in Kimaki’s database.
Best Practices
Use Agents for Workflows: Create agents for common workflows:build- Build, test, and CI tasksdebug- Debugging and troubleshootingplan- Architecture and planning (use slower, more capable models)refactor- Code cleanup and refactoring
/model in threads to test different models without changing channel defaults.
Global Defaults for Consistency:
Set a global default model so new channels use a consistent model:
Example Agent Library
Create these agents in.opencode/agent/ for a complete workflow:
.opencode/agent/build.md:
.opencode/agent/plan.md:
.opencode/agent/debug.md:
.opencode/agent/fast.md:
Troubleshooting
Model not available: Use/login to connect the provider. Only connected providers show models.
Agent not showing in menu:
Check agent mode in frontmatter. Only primary and all agents appear in /agent menu.
Model override not applying:
Restart the session or use /restart-opencode-server to reload configuration.
Quick agent command missing:
Agent commands are registered at bot startup. Restart Kimaki after creating new agents.
Next Steps
OpenCode Config
Configure permissions and behavior
Best Practices
Learn workflow optimization tips