OpenCode
Using Milkey with OpenCode
Milkey integrates natively with OpenCode to provide continuous alignment on architectural standards and library details. By leveraging OpenCode's agents configuration, you can deeply embed Milkey into its routines.
Installation
Open your OpenCode configuration. You can edit the project-local opencode.json file, or the global ~/.config/opencode/opencode.json.
Terminal
# Global config
vim ~/.config/opencode/opencode.json
# Or project level config
vim opencode.jsonNext, inject the milkey server block into your json payload:
{
"mcp": {
"milkey": {
"type": "remote",
"url": "https://mcp.vexelityai.com/mcp",
"headers": {
"MILKEY_API_KEY": "mk_live_your_secret_key_here"
},
"enabled": true
}
}
}Environment Vars
You can use environment variable syntax for your API key:
"MILKEY_API_KEY": "{env:MILKEY_API_KEY}". This reads from your host's environment instead of hardcoding the secret in plain text.Using Milkey
To ensure OpenCode consistently uses your enabled Milkey skills, add an explicit instruction in AGENTS.md so agent runs always consult Milkey first for skill-driven tasks.
AGENTS.md
When you need skill guidance for code, architecture, or workflows, call the `milkey` tools first.