OpenCode + SingIt
An npm plugin on the local SingIt proxy. Pay per request in USDC under ceilings you set; a free model needs no wallet.
1. Install
npm install @singitai/opencodebun add @singitai/opencode works too. The package is a plugin, not a CLI - there is no curl installer for it. Checked on npm (@singitai/opencode 0.1.1) on 15 November 2026.
2. What setup does
The plugin registers an OpenCode provider named singit that points at the local SingIt proxy on 127.0.0.1:8787. The proxy speaks the OpenAI-compatible API to SingIt and settles each request with an x402 micropayment in USDC on Base, signed from the wallet at ~/.singit/session. Your private key never leaves your machine.
Prerequisite - the proxy must be running before you select a singit/* model:
npm install -g @singitai/proxy
singit-proxyOn first run the proxy creates the session wallet; fund it with USDC on Base. Then add the plugin to opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugins": ["@singitai/opencode"],
"model": "singit/auto"
}Or pick a model interactively in OpenCode: /models → SingIt. To point the plugin at a proxy on a different address, set SINGIT_PROXY_URL (default http://127.0.0.1:8787/v1).
3. Start
singit-proxyThen run OpenCode as usual and choose a singit/* model: singit/auto (the default - the proxy routes to the best available model for the request) or singit/free/deepseek-v4.1-flash for the free tier.
How the limits work
Receipts
Every settled answer carries a receipt: the PAYMENT-RESPONSE and X-SingIt-Receipt headers. The proxy forwards the PAYMENT-RESPONSE to the client unchanged and never logs it. From any MCP client, get_receipts lists what was charged. See How a payment is charged.
Free first call, no key
Select the model singit/free/deepseek-v4.1-flash - the free-tier model costs nothing and needs no wallet balance and no key.
Troubleshooting
singit/*models missing: the proxy must be running first - checkhttp://127.0.0.1:8787/health.- HTTP 402: a payment demand, never a chat completion. If the wallet cannot pay, the proxy returns an error and does not retry the signed request - fund the wallet (
http://127.0.0.1:8787/walletshows the receive address). - The plugin has no CLI of its own, so there is no
doctorcommand; the proxy’s/healthendpoint is the check.
Status
Early status. @singitai/opencode 0.1.1 is live on npm (verified 15 November 2026); a smoke test against a real OpenCode build has not been run yet.