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

# OpenCode

> Give the OpenCode CLI persistent, cross-session memory with Memanto.

# OpenCode + Memanto

<img src="https://mintcdn.com/memanto/7cqii5_wGejS32un/logo/integrations/opencode.svg?fit=max&auto=format&n=7cqii5_wGejS32un&q=85&s=a07b3c7bd6b77d2425b1c1543ad0d216" alt="OpenCode" width="64" style={{marginBottom: "1.5rem"}} data-path="logo/integrations/opencode.svg" />

Connect the [OpenCode CLI](https://opencode.ai) to Memanto so it can store and recall persistent memory across sessions.

## Connect via CLI (recommended)

```bash theme={null}
memanto connect opencode
```

This installs an OpenCode-specific instruction file and the `memanto-memory` skill into your project. Add `--global` to install system-wide:

```bash theme={null}
memanto connect opencode --global
```

## Connect via MCP

OpenCode supports MCP, so you can alternatively register Memanto as an MCP server. See the [MCP integration guide](/integrations/mcp) for the `memanto-mcp` server reference and config.

## Next Steps

* [CLI: connect command](/cli/connect/connect)
* [MCP Integration](/integrations/mcp)
* [Memory Types Reference](/reference/memory-types)
