Kimaki uses OpenCode as its underlying code agent. You can customize OpenCode’s behavior by creating anDocumentation 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.
opencode.json file in your project root.
Configuration File
Createopencode.json in your project directory:
Changes to
opencode.json require restarting the OpenCode server. Use /restart-opencode-server in Discord or restart the Kimaki bot.Permission Modes
Each permission resolves to one of three modes:allow- Run automatically without promptingask- Show approval buttons in Discord threaddeny- Block the request entirely
Tool Permissions
Bash Commands
Control shell command execution with glob patterns:*- Matches any command (wildcard)git *- Matches any command starting withgitrm -rf *- Matchesrm -rfwith any arguments- Specific patterns take precedence over wildcards
External Directory Access
By default, Kimaki only allows file operations within the project directory. Accessing files outside the project triggers a permission prompt. Allow Specific Paths:~/path/**- Matches directory and all subdirectories/absolute/path/**- Absolute path matching- Relative paths are not supported (use absolute or
~)
Default Model
Set the default AI model for this project:provider/model-name
Examples:
anthropic/claude-sonnet-4-20250514- Claude Sonnet 4anthropic/claude-opus-4-20250514- Claude Opus 4openai/gpt-4o- GPT-4ogoogle/gemini-2.5-pro- Gemini 2.5 Pro
Use
/model in Discord to override the default model per channel or session.Permission Approval Flow
When a tool requires approval, Kimaki shows buttons in the Discord thread:- Accept - Approve this one request
- Accept Always - Auto-approve similar requests for this session
- Deny - Block the request
Per-Agent Permissions
Override permissions for specific agents:deploy agent, bash commands run without approval (except rm -rf).
Full Schema Reference
See the OpenCode Permissions documentation for:- Complete list of permission keys
- Advanced pattern matching syntax
- Permission precedence rules
- Security best practices
Common Configurations
Minimal (Default Behavior):Reloading Configuration
After modifyingopencode.json:
Restart OpenCode Server
Use
/restart-opencode-server in any channel for this project.This restarts only the OpenCode server for this project. Other projects are unaffected.
Debugging Permissions
If permissions aren’t working as expected: Check file location:~/.kimaki/kimaki.log.
Test with /restart-opencode-server:
Restart the server to ensure changes are loaded.
Next Steps
Model Configuration
Configure AI models and agents
Permissions Guide
Learn about permission system in detail