Tool setup
OpenCode setup for AMAI
OpenCode can use AdvancedMind AI as an OpenAI-compatible provider. Buy credits, claim the one-time key, then set the base URL and model.
Buy $10 credits
Open AMAI chat
Model catalog
Smoke test
$10 credits for a fast live check against abliterated and heretic.
Buy $10 credits
Coding/API integration
$100 credits when you are wiring OpenCode, Aider, Continue, Open WebUI, or your own agents.
Buy $100 credits
Recurring research work
Research Pro for authorized security, life-science literature, and frontier technical workflows.
Start Research Pro
Best first purchase
Pick the smallest paid path that proves the AMAI route you need. The same key works in chat and OpenAI-compatible clients after Stripe returns to the claim page.
Configuration
{
"provider": {
"advancedmind": {
"npm": "@ai-sdk/openai-compatible",
"name": "AdvancedMind AI",
"options": {
"baseURL": "https://api.advanced-mind.com/v1",
"apiKey": "{env:AMAI_API_KEY}"
},
"models": {
"amai-glm-abliterated-v0.1": {
"name": "AMAI GLM Abliterated v0.1"
}
}
}
}
}
First run
export AMAI_API_KEY="amai_sk_..."
opencode run -m advancedmind/amai-glm-abliterated-v0.1 "Review this repo and propose the next patch."
Paid before spend
Credits must exist before inference starts. The gateway blocks insufficient-credit requests before provider spend.
Launch models
Use amai-glm-abliterated-v0.1 by default and amai-glm-heretic-v0.1 for heretic candidate search.