Memory for OpenCode

Checked against OpenCode's documentation on 25 November 2026.

OpenCode reads the instructions you keep in AGENTS.md. Atlaso adds a memory it keeps for you, brought in for your prompts and saved as you work, the same one your other tools use.

Free to start. No credit card needed.

Does OpenCode remember between sessions?

OpenCode's docs describe instruction files, not a memory store. It reads AGENTS.md in your project, where nested files load when needed, and a global AGENTS.md in its config folder. It falls back to CLAUDE.md files, and an instructions list in opencode.jsonc can add more.

What OpenCode keeps on its own

What OpenCode keeps on its own
Kept asWhat it isWhere it livesWhat it reaches
AGENTS.mdInstructions you writeYour project; nested files load when neededThat project
Global AGENTS.mdInstructions you write~/.config/opencode/AGENTS.mdEvery project
CLAUDE.mdClaude Code's instruction files, read as a fallbackYour project, and ~/.claude/CLAUDE.mdWhen OpenCode falls back to them
InstructionsExtra files you listThe instructions array in opencode.jsoncWhatever you list

Checked against OpenCode's documentation on 25 November 2026: Rules (opens in a new tab).

Where it stops

Instruction files are the right place for rules. Three things fall outside them.

01

What nobody writes down

Instruction files hold what someone wrote. The reason behind a choice, the approach you ruled out and where you left off rarely make it in.

02

No store to fill on its own

OpenCode's docs describe no built-in memory store, so a decision from one session reaches the next only if someone writes it into a file.

03

Your other tools

What you decide in Cursor or Claude Desktop reaches OpenCode only if someone writes it into a file OpenCode reads.

  • Each tool's own files, kept apart
  • Atlaso: one memory, joined to every tool

Clockwise from the top: Claude Code, Codex, Cursor, Claude Desktop, Antigravity and OpenCode.

What Atlaso adds

One memory outside OpenCode, the same on every machine and in every tool you connect.

One memory, every tool

What OpenCode saves is there for Claude Code, Codex and every tool you connect, on every machine. Saving and using memories is free and unlimited.

Automatic in every session

Atlaso brings in the memories that fit for your prompts and saves what matters when a session goes idle. There is nothing to run day to day.

Secrets stay out

Passwords, keys and tokens Atlaso recognises are blacked out before anything is saved. We never train AI models on your memory, sell it, or use it for ads.

Yours to see and forget

Every memory is on your dashboard. Ask your memory a question, or forget a memory and it stops coming back in every tool.

How it works with OpenCode

Recall is added for your prompts, and capture runs when a session goes idle. Setup writes the files into your OpenCode config folder, usually ~/.config/opencode. Nothing is added to your opencode.json, and there is no npm step.

What setup installs

What setup installs in OpenCode
PieceWhat it does
PluginRecall for your prompts, capture when a session goes idle
MCP serverMemory tools your model can call directly
SkillMemory-aware behaviours

How do I give OpenCode persistent memory?

One command, one sign-in, one fresh session.

01

Run one command

In your terminal, run curl -fsSL https://atlaso.ai/install.sh | bash. On Windows, run irm https://atlaso.ai/install.ps1 | iex in PowerShell.

02

Authorize in your browser

Your browser opens. Sign in, or create your account, and click Authorize to link this machine. You don't edit config files or paste API keys.

03

Pick OpenCode, then start a fresh session

Back in the terminal, pick OpenCode. Start a fresh OpenCode session so it loads the plugin and the Atlaso MCP server.

Built-in memory and Atlaso, side by side

Keep what OpenCode does on its own. Atlaso runs beside it.

OpenCode on its own and with Atlaso
QuestionOpenCode on its ownWith Atlaso
Who writes itYou write AGENTS.md and any files you list.Atlaso saves as you work, in every tool you connect.
Between sessionsWhat is in your instruction files.The memories that fit, brought in for your prompts.
Across toolsAGENTS.md reaches the tools that read it.Claude Code, Codex, Cursor, Claude Desktop, Antigravity, OpenCode and Grok Build.
What you controlEdit the files.See, ask and forget any memory on your dashboard.

Questions, answered

OpenCode's docs describe instruction files, not a memory store: AGENTS.md in your project and in its config folder, CLAUDE.md as a fallback, and any files you list under instructions. Atlaso adds a memory that is saved as you work and brought in for your prompts.

Other tools

What OpenCode saves, your other tools can use. Atlaso keeps one memory for Claude Code, Codex, Cursor, Claude Desktop, Antigravity, OpenCode and Grok Build.

Never explain yourself twice.

Free in Claude Code, Codex, Cursor, Claude Desktop, Antigravity, OpenCode and Grok Build, with unlimited memories.

Free to start. No credit card needed.