Coding agent · Anomaly

OpenCode + SpendixAI

OpenCode turns on OAuth for remote MCP servers by default, discovers the sign-in details and refreshes tokens itself. Add SpendixAI with one command and approve access once.

OpenCode installedA SpendixAI workspaceThe SpendixAI server address from Developer → MCP connections
What did I spend on food last month compared with the month before?
OpenCode · using SpendixAI · illustrativeIt looks at the records you allowed and answers from them. You stay in control of what is shared.
Read only to start · You approve what is shared

Connect in a few minutes.

OpenCode adds a remote server with one command and signs in from its /mcps screen or a second command.

Copy the server address

In SpendixAI open Developer → MCP connections and copy the SpendixAI server address.

Add the server

Run the command below, then run opencode mcp list to check that it was added.

Sign in

Open OpenCode, run /mcps, select the server and sign in. You can also run opencode mcp auth spendixai. If the browser is on another machine, paste the failed callback address into the prompt.

Approve access

Choose your workspace in SpendixAI and pick a permission preset. Read only is the recommended start.

Terminal
opencode mcp add spendixai --url https://spendix-api.kriva.studio/mcp

Add --global to make the server available in all projects. Manual config for the current docs (V2) puts servers under mcp.servers: { "mcp": { "servers": { "spendixai": { "type": "remote", "url": "https://spendix-api.kriva.studio/mcp" } } } } Older V1 docs use { "mcp": { "spendixai": { "type": "remote", "url": "https://spendix-api.kriva.studio/mcp" } } }. Use the shape that matches your installed version. To remove saved credentials run opencode mcp logout spendixai.

What you need

  • OpenCode installed
  • A SpendixAI workspace
  • The SpendixAI server address from Developer → MCP connections
  • A browser for the sign-in step, or the ability to paste a callback address back

Good to know

  • OpenCode’s config shape differs between its current docs (V2) and the older V1 docs. Check which version you have installed before editing the file by hand.
  • Tools are named with the server name first, such as spendixai_ followed by the tool name. Permission rules can deny them with a pattern like spendixai_*.
  • Whether OpenCode asks before every MCP tool call by default was not confirmed in the documentation we read. Review your permission rules and keep the Read only preset.
  • In V2, Code Mode is on by default and groups tools under the server name. Setting codemode to false exposes the tools directly.

Questions to start with.

These need only read access. Add records or upload statements once you have moved to a broader preset.

“What did I spend on food last month compared with the month before?”“Which merchants did I pay most often this quarter?”“List my recurring charges and what each costs per year.”

Start read only. Widen it later.

Read onlyRecommended

Ask about transactions, summaries and reports. Nothing can be added, changed or uploaded.

Read and add

Ask questions, add expenses and upload statements or receipts.

Full access

Everything above, plus categorisation rules and insights. Billing and member settings stay in the console.

OpenCode and SpendixAI.

Which client registration does OpenCode use?

It tries a pre-registered client ID first, then client ID metadata documents, then dynamic registration. SpendixAI needs no pre-registration.

How do I disconnect?

Run opencode mcp logout spendixai, and revoke the connection in SpendixAI under Developer → MCP connections.

Do I need to paste an API key?

No. The connection uses your SpendixAI sign-in and a consent screen, with dynamic client registration, so there is no secret to copy into a config file.

Can I keep the connection read only?

Yes. Read only is the recommended preset, and you can grant more access later or disconnect the assistant at any time from Developer → MCP connections.

Setup steps were checked against OpenCode’s own documentation in November 2026. Menus and commands change, so if a step does not match what you see, follow the vendor’s current guide.

Using something else?

More assistants that can connect to SpendixAI. See all 42.

Bring OpenCode into your finances.

Create your SpendixAI workspace, import a statement, then connect the assistant.