Skip to content

Features

Discover what StrataCode adds to OpenCode — persistent memory, optional repository context, explicit model control, and hosted usage visibility.

The StrataCode additions

More context.
Less starting over.

A coding agent that carries your project knowledge forward. StrataCode builds on OpenCode with persistent memory, optional repository context, and a hosted gateway for model choice and usage visibility.

Open source. Terminal first. Built on OpenCode.

What StrataCode adds

Four ways to make everyday coding work easier to continue, explore, and manage.

01Built into the CLI

Pick up where you left off.

Keep project conventions, decisions, and hard-won fixes across sessions. StrataCode recalls saved memories so your next task can start with the context you have already established.

Project and personal scopes. Searchable Markdown files. Update a fact or archive it when it stops being useful.

Try it on your next task

Remember that this project runs tests with Bun and keeps database migrations in db/migrations.

02Optional local context

See how the code connects.

Add a repository graph to help the agent find related code and understand the impact of an edit. Structural hints work alongside ordinary file reads and search as you explore an unfamiliar codebase.

Enable per project with stc optimize init. Local setup needs uv and Python dependencies; ordinary tools remain available if the context service is unavailable.

Try it on your next task

Before changing this function, explore its callers and the code that depends on it.

03Hosted gateway

Choose the model for the job.

Use one endpoint for the available model catalogue. Pin a named model for a deliberate choice, or select stratacode/auto for the gateway’s configured routing policy.

Named selections are preserved. Auto defaults to a conservative flagship route; cheaper-tier heuristic routing is experimental and opt-in.

Try it on your next task

Keep a critical refactor on a specific model, then change models for your next task.

04Hosted account

Know where your usage goes.

See your balance and usage in the account dashboard. Request accounting tracks model usage and charges, with reservations checked before paid work starts.

Balance and quota checks give you a clear limit at admission. A reservation can exceed the final charge, so available balance can temporarily be lower.

Try it on your next task

Check your account’s usage after a coding session and see what was charged.

A familiar foundation

Keep your OpenCode workflow.

StrataCode is an OpenCode fork. The terminal interface, coding tools, agents, provider integrations, and MCP support come from that foundation. The additions above build on it.

Explore the source on GitHub →

Already use another coding client?

Connect an OpenAI-compatible client to the StrataCode gateway with a base URL and API key. Hosted model access and usage tracking work there too. Memory and repository context are CLI capabilities; changing an endpoint alone does not add them to another client.

Connect your client →

A few things to know

Where does memory live?

Saved memories live in local Markdown files, scoped to a project or your personal configuration. Relevant memories enter model context, so local storage does not mean they stay off the model provider’s servers. You can inspect them with stc memory list and manage them with the agent’s memory tool.

Does graph context guarantee lower bills?

No. It adds structural hints that can help with navigation, and those hints also take context space. Compression estimates are not measured token or money savings. Use it on your own project and compare the workflow.

Can I invite someone into an interactive session?

Interactive guest collaboration is not available yet. Scoped guest HTTP access exists for configured servers, but guest terminal attach, live event streams, and shared PTY access are restricted.

Which hosted models and payment methods can I use?

Availability depends on the gateway’s current configuration. Check the model catalogue and your account dashboard before choosing a paid workflow. Payment methods require operator configuration and may be unavailable.

Start in your terminal

Make the next session a continuation.

Install the CLI with npm, open your project, and start StrataCode. Run stc login when you want to connect a hosted account.

terminal
npm install -g @stratacode/cli@latest
cd your-project
stc

# Inspect saved project knowledge
stc memory status

# Optional: set up repository context
stc optimize init