Skip to main content
Connect opencode to Costa. Turn on Trim. Build a Cosmic Router.
Using a different tool? Claude Code ยท Codex ยท something else

Before you start

Youโ€™ll need:
  • opencode installed.
  • A terminal youโ€™re comfortable in.
1

Install Costa

Copy this into your terminal and run it:
When the install finishes, Costa walks you through:
  1. Creating your Costa account.
  2. Picking a callsign โ€” your public username on Costa.
  3. Landing on the Integrations menu.
Stay in the TUI. The next step happens there.
2

Enable opencode

Youโ€™re now on the Integrations tab. Youโ€™ll see something like this:Use the arrow keys to highlight opencode, then press Enter. Costa writes a token into ~/.config/opencode/opencode.json and flips the row to Enabled โœ“.Restart opencode so it picks up the new config.
3

Send your first prompt

Open opencode with opencode and ask it to do something real โ€” fix a bug, write a test, refactor a file. Then open your session dashboard and watch your messages stream in.Youโ€™ll see the prompts, the model that handled it, the tool calls, and the running token count. Thatโ€™s Costa working underneath opencode. You can also view your live dashboard to see response times by provider and model.

Next: Turn on Trim

Strip unused tokens before they reach the model.