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

# OpenCode Quickstart

> Get started with Augment Context Engine MCP in OpenCode in minutes

<Tabs>
  <Tab title="Local Server">
    ### 1. Install Auggie CLI

    ```bash theme={null}
    npm install -g @augmentcode/auggie@latest
    ```

    ### 2. Sign in to Augment

    ```bash theme={null}
    auggie login
    ```

    This will open a browser window for authentication.

    ### 3. Configure the MCP server in OpenCode

    * Go to Folder: \~/.config/opencode/
    * Create a file named: opencode.json

    Paste this configuration:

    ```json theme={null}
    {
      "$schema": "https://opencode.ai/config.json",
      "mcp": {
        "augment-context-engine": {
          "type": "local",
          "command": ["auggie", "--mcp", "--mcp-auto-workspace"],
          "enabled": true
        }
      }
    }
    ```

    ### 4. Test the integration

    ```
    Prompt: "What is this project? Please use codebase retrieval tool to get the answer."
    ```

    OpenCode should confirm it has access to the `codebase-retrieval` tool.

    <img src="https://mintcdn.com/augment-mtje7p526w/rIravLuzI7-HsY1h/images/open-code-1.png?fit=max&auto=format&n=rIravLuzI7-HsY1h&q=85&s=81963a81b49d6c14ef9822004c1425f8" alt="OpenCode test" width="998" height="294" data-path="images/open-code-1.png" />

    See [MCP Server Mode](/cli/reference#mcp-server-mode) for more options.
  </Tab>

  <Tab title="Remote Server">
    1. Sign up at [augmentcode.com](https://augmentcode.com)
    2. Follow the setup instructions at [app.augmentcode.com/mcp/configuration](https://app.augmentcode.com/mcp/configuration)
  </Tab>
</Tabs>
