OpenCode Integration · Open-source CLI

OpenCode is your CLI.
Tramya is your library.

OpenCode does the work: a command-line AI agent, self-hosted, compatible with any LLM. Tramya handles the long term: indexing, retrieving, and passing context between agents.

Why combine the two

Two building blocks that complete each other.

OpenCode: execution

A compact CLI AI agent, adaptable to any model. Perfect for targeted edits inside a repository.

Tramya: persistence

What OpenCode does is saved, organized and searchable afterward. Not just buried in a console log.

Together: portability

An OpenCode session can resume in Claude Code later, or the other way around. The project context follows.

Setup

Two commands.

  1. 1. Install Tramya

    Download the signed and notarized macOS .dmg from tramya.com. Windows and Linux builds are on the way; npx tramya works in the meantime.

  2. 2. Point to the OpenCode folder

    Settings > Sources > Add > OpenCode. The default path is suggested for you.

  3. 3. Test a resume

    Open an old OpenCode session in Tramya, click Resume: OpenCode restarts with the project context.

Frequently asked questions

Compatible with a local Ollama model?

Yes. Tramya doesn’t care which model OpenCode uses; it reads the logs.

Can I fork Tramya to integrate it differently?

The local companion is extensible through connectors, and a public v1 API is available.

Is OpenCode’s export format stable?

Tramya tracks each successive OpenCode release and adapts the parser automatically.