# Install threefold in OpenCode

Connect to `https://api.threefold.eco/mcp`. Authentication and actual client support depend on the client; use the [installation guide](https://threefold.eco/docs/install.md) for current setup and alternatives.

## OpenCode settings

`~/.config/opencode/opencode.json`:

```json
{
  "mcp": {
    "servers": {
      "threefold": {
        "type": "remote",
        "url": "https://api.threefold.eco/mcp"
      }
    }
  }
}
```

For Cursor, VS Code, Gemini CLI and OpenCode, an API key goes in a `headers` object next to `url`: `"headers": { "Authorization": "Bearer tf_live_your_key" }`.

Client installation and directory listings are distinct; no marketplace submission is implied.

If `npx threefold` reports that the package does not exist, use these per-client settings instead. The hosted server cannot read local repository files; use local stdio or the CLI for a local check.
