# Connect your agent

> How to connect Claude Code, Codex, Cursor, VS Code, OpenCode, Devin, Gemini CLI and Antigravity to Sysnee, with the setup prompt or by hand.

## With the setup prompt

Paste this into the agent:

```text
Read https://docs.sysnee.com/agent-setup/prompt.md and help me set up Sysnee in this agent, asking for my approval before each command.
```

The [prompt](https://docs.sysnee.com/en/agent-setup/index.md) tells the agent to show you what it will install, ask before each command, use only the versions pinned below, leave your global instructions alone, and finish by showing how to revoke the access.

## What gets installed

- **MCP server** `https://mcp.sysnee.com/mcp`: the tools that act on your account. See [MCP server](https://docs.sysnee.com/en/mcp.md).
- **Skills** from the public repository [sysnee/agent-kit](https://github.com/sysnee/agent-kit), tag `v1.0.0`: how to deploy each framework, how to connect to Postgres without exposing the password, and how to use the CLI. Text only, no scripts or hooks.
- **CLI** `@sysnee/cli@1.0.0` (optional). See [CLI](https://docs.sysnee.com/en/cli.md).

Sign-in is always in the browser, on Sysnee's consent screen. You pick the scopes and projects. No agent needs your password or a pasted token.

## Claude Code

```bash
claude plugin marketplace add sysnee/agent-kit#v1.0.0
claude plugin install sysnee@sysnee
```

In an open session, run `/reload-plugins`. Then `/mcp`, pick `sysnee` and **Authenticate**.

The plugin bundles the MCP server and the skills, pinned to the tag. It has no hooks or executables. Auto-update is off by default for third-party marketplaces; for a new version, run `claude plugin marketplace add` with the new tag.

Only the MCP server, without the plugin:

```bash
claude mcp add --transport http sysnee https://mcp.sysnee.com/mcp
```

## Codex

```bash
codex mcp add sysnee --url https://mcp.sysnee.com/mcp
codex mcp login sysnee
```

`add` writes to `~/.codex/config.toml` and usually starts the sign-in right away. Over SSH, use `codex mcp login sysnee --no-browser` and paste the redirect address back.

Same thing in `~/.codex/config.toml`:

```toml
[mcp_servers.sysnee]
url = "https://mcp.sysnee.com/mcp"
```

## Cursor

In `.cursor/mcp.json` (project) or `~/.cursor/mcp.json` (all projects):

```json
{ "mcpServers": { "sysnee": { "url": "https://mcp.sysnee.com/mcp" } } }
```

Or open this link on the computer where Cursor is installed:

```text
cursor://anysphere.cursor-deeplink/mcp/install?name=sysnee&config=eyJ1cmwiOiJodHRwczovL21jcC5zeXNuZWUuY29tL21jcCJ9
```

Cursor asks you to sign in when it connects. In the Cursor CLI: `agent mcp login sysnee`.

## VS Code (GitHub Copilot)

In `.mcp.json` at the workspace root or in `~/.copilot/mcp-config.json`:

```json
{ "mcpServers": { "sysnee": { "type": "http", "url": "https://mcp.sysnee.com/mcp", "tools": ["*"] } } }
```

Versions that still use `.vscode/mcp.json`:

```json
{ "servers": { "sysnee": { "type": "http", "url": "https://mcp.sysnee.com/mcp" } } }
```

The browser opens on the first connection. If it doesn't, use **Authenticate** in the server's actions.

## OpenCode

In `opencode.json` in the project or in `~/.config/opencode/opencode.json`:

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": { "sysnee": { "type": "remote", "url": "https://mcp.sysnee.com/mcp", "enabled": true } }
}
```

```bash
opencode mcp auth sysnee
```

## Devin (formerly Windsurf)

Devin Desktop and Devin CLI:

```bash
devin mcp add -s user sysnee https://mcp.sysnee.com/mcp
devin mcp login sysnee
```

The file is `~/.config/devin/mcp_config.json` (or `.devin/mcp_config.json` in the project):

```json
{ "mcpServers": { "sysnee": { "url": "https://mcp.sysnee.com/mcp", "transport": "http" } } }
```

In Desktop, sign in from **Customize → MCPs → Authenticate**.

## Gemini CLI

```bash
gemini mcp add --transport http -s user sysnee https://mcp.sysnee.com/mcp
```

Inside Gemini, run `/mcp auth sysnee`. In `~/.gemini/settings.json`, use `httpUrl` (in Gemini, `url` alone means SSE):

```json
{ "mcpServers": { "sysnee": { "httpUrl": "https://mcp.sysnee.com/mcp" } } }
```

## Antigravity

In `~/.gemini/config/mcp_config.json` (or `.agents/mcp_config.json` in the workspace):

```json
{ "mcpServers": { "sysnee": { "serverUrl": "https://mcp.sysnee.com/mcp" } } }
```

In the app, **Customizations → Installed → Authenticate**.

## Skills outside Claude Code

The `skills` CLI (Node.js 22.20 or newer) copies the skills to the folder each agent reads:

```bash
DO_NOT_TRACK=1 npx -y skills@1.7.4 add https://github.com/sysnee/agent-kit/tree/v1.0.0/plugins/sysnee/skills -a codex -y
```

Swap `-a codex` for `cursor`, `github-copilot`, `opencode`, `devin`, `gemini-cli` or `antigravity`. Without `-g`, the skills stay in the project (`.agents/skills/` for most agents). `DO_NOT_TRACK=1` turns off the `skills` telemetry.

## Revoke

**Console → Security → Authorized apps** lists every connected agent, with scopes, projects and last use. **Revoke** cuts the access at once. The **Activity** tab shows what each one did.

To remove it from the agent: `claude plugin uninstall sysnee@sysnee`, `codex mcp remove sysnee`, or delete the `sysnee` block from the config file.
