> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# OpenCode

## **Tessl Configuration**

Run `tessl init` in your project to create the tessl files and directory structure.

## **MCP Setup**

In your project folder, create a opencode.json with the following content:

```
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "tessl": {
      "type": "local",
      "command": ["tessl", "mcp", "start"],
      "enabled": true
    }
  }
}
```

After opening OpenCode to that project, use **/mcp** and ensure it's enabled and connected

<figure><img src="https://docs.tessl.io/~gitbook/image?url=https%3A%2F%2F1171143958-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FXbWzspFdXV0HNujz6gJ9%252Fuploads%252Fn4qpeASLCLCKjNRKJvkR%252Fimage.png%3Falt%3Dmedia%26token%3Dd430663c-3130-4b07-81bc-ab960e0c6c41&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=e896a393&#x26;sv=2" alt=""><figcaption></figcaption></figure>

## **Rules setup**

If not already present in your project, create an `AGENTS.md` file with the following content, ensuring the .tessl and RULES.md paths are correct:

```
 @.tessl/RULES.md
```
