opencode is a full coding agent that runs in your terminal — it writes real multi-file projects, runs commands, and iterates. Point it at MakeMode and it builds on GLM-5.2, hosted in France. The model key never touches your machine; every request is metered through the MakeMode gateway and billed to your balance.
every request runs through the gateway in france — nothing leaves the eu
Go to account.makemode.eu and sign in with an email link. New accounts start with a small balance of EU credits.
On your account dashboard, under API keys, create a key and name it (e.g. “laptop”). You'll see the sk-gw-… key once — copy it now. That key is your identity and your wallet: every request it makes bills your balance.
Paste this into a terminal. It installs opencode if you don't have it, asks for your key, and configures opencode to use MakeMode — you never touch a config file.
Open a project folder and run opencode. Describe what you want to make; it builds on GLM-5.2 in the EU.
The script just writes two files. To do it yourself, create these (paste your own sk-gw-… key into the second one):
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"model": "scaleway/glm-5.2",
"provider": {
"scaleway": {
"npm": "@ai-sdk/openai-compatible",
"name": "MakeMode (EU, metered)",
"options": { "baseURL": "https://makemode7a8eadcc-gateway.functions.fnc.fr-par.scw.cloud/v1" },
"models": {
"glm-5.2": { "name": "GLM 5.2 (EU)", "limit": { "context": 128000, "output": 8192 } }
}
}
}
}
~/.local/share/opencode/auth.json
{ "scaleway": { "type": "api", "key": "sk-gw-YOUR-KEY-HERE" } }
You hold an sk-gw-… key, never the real provider key. The gateway injects that in France — it never reaches your machine.
Requests draw from prepaid EU credits. You can't overspend what you've bought — no debt, no surprise bill. Top up any time.
The gateway only routes EU-hosted models (GLM-5.2 today). It won't send your traffic to a non-European model, even by accident.
Lost a key, or done with a machine? Revoke it from your account dashboard and it stops working immediately.