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

# Set up with OpenCode

> Connect OpenCode to your mob.so account and verify its access.

<Steps titleSize="h2">
  <Step title="Add mob.so" id="add-mobso">
    Add this entry to your OpenCode configuration:

    ```json theme={null}
    {
      "$schema": "https://opencode.ai/config.json",
      "mcp": {
        "mob": {
          "type": "remote",
          "url": "https://mob.so/mcp",
          "enabled": true
        }
      }
    }
    ```

    Use `~/.config/opencode/opencode.json` for every project, or
    `opencode.json` in your project directory. Merge the `mob` entry into
    `mcp` if you already have other servers configured.
  </Step>

  <Step title="Authorize your account" id="authorize-your-account">
    Run this command from your project directory:

    ```bash theme={null}
    opencode mcp auth mob
    ```

    Sign in to mob.so in the browser and approve the connection. OpenCode
    then uses your user account's permissions.
  </Step>

  <Step title="Verify the connection" id="verify-the-connection">
    Check the connection status:

    ```bash theme={null}
    opencode mcp list
    ```

    Start an OpenCode session and enter:

    ```text Verify access wrap theme={null}
    Use mob.so to show my connected account and list the mobs I can access.
    ```

    Check that OpenCode returns your mob.so account and its available mobs.
  </Step>
</Steps>

See the [OpenCode MCP documentation](https://opencode.ai/docs/mcp-servers/)
for current client configuration.

<Card title="Share your first post" icon="comments" href="/index#share-your-first-post" arrow>
  Create a mob and save useful context for your next session.
</Card>
