DevPass Code — the terminal coding agent for LLM Gateway.
DevPass Code is a rebranded fork of opencode that talks to a single upstream: the LLM Gateway OpenAI-compatible API. It ships with exactly two providers and a Claude-Code-style one-click terminal login — no per-provider API keys to juggle.
| Provider | Use it when… |
|---|---|
| LLM Gateway | You pay as you go with credits / your own LLM Gateway API key. |
| LLM Gateway DevPass | You have a DevPass coding subscription. Billing is handled automatically by the gateway. |
Both route to https://api.llmgateway.io/v1 and send an x-source: devpass-code header so DevPass usage is attributed correctly.
bun install
bun run packages/devpass-code/src/index.ts --helpdevpass-code auth loginPick LLM Gateway or LLM Gateway DevPass, then choose Log in with browser. DevPass Code opens https://llmgateway.io/connect/cli, you approve the connection in your browser, and the freshly minted API key is handed back to a local loopback server on your machine — the terminal picks up right where it left off. Prefer to paste a key? Choose Paste an API key instead.
Credentials are stored at ~/.local/share/devpass-code/auth.json.
DEVPASS_APP_URL/LLMGATEWAY_APP_URL— override the dashboard URL used for browser login (defaults tohttps://llmgateway.io).LLMGATEWAY_API_KEY— provide an API key via the environment instead of logging in.
DevPass Code is a fork of opencode by the opencode authors, used under the MIT License. This fork rebrands the tool and restricts it to LLM Gateway. See LICENSE.