> ## Documentation Index
> Fetch the complete documentation index at: https://docs.atlaso.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenCode

> Full automatic recall and capture, installed as a local plugin.

## Install

[One command](https://docs.atlaso.ai/install.md) sets up OpenCode along with any other AI tools on this
machine:

```bash theme={null}
curl -fsSL https://atlaso.ai/install.sh | bash
```

Pick **OpenCode** when the CLI asks which tools should share your memory.
Already have Atlaso? Run `atlaso setup` and add it.

> [!WARNING]
>
> Last step — start a **fresh OpenCode session** so it loads the plugin and the
> Atlaso MCP server.

> [accordion] Where the plugin lives
>
> OpenCode loads plugin files from your config directory automatically, so the
> Atlaso CLI installs one bundled file to `~/.config/opencode/plugin/atlaso.js`.
> Nothing is added to your `opencode.json` and there's no npm install step.
>
> There is also an `@atlaso-labs/opencode` package on npm. It's a separate
> distribution channel and it's behind the version the CLI ships — **don't add
> it as well**, or OpenCode will load Atlaso twice. Use the CLI.

## What it wires

| Piece | What it does |
| - | - |
| Hooks | Recall injected for your prompts · capture on session idle |
| MCP server | Memory tools your model can call directly |
| Rules | Memory-aware behaviors |
| Ambient Memory (Pro) | Session-start orientation |

## Notes

* Everything is automatic — nothing to run day-to-day.
* Background/cloud agent runs don't get the memory loop; memory works in
  your interactive sessions.

## Removing it

```bash theme={null}
atlaso unlink opencode
```

That revokes OpenCode's access and removes the plugin. By hand: delete
`~/.config/opencode/plugin/atlaso.js` and start a fresh session.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.