---
title: "Connect Claude Code"
description: "Install the Togo plugin in Claude Code with one command, sign in, and check the connection."
canonical: "https://www.togohq.ai/docs/mcp/claude-code"
applies_to: "mcp.togohq.ai/mcp, the togo plugin 1.x, Claude Code"
updated: "2026-11-06T00:00:00Z"
---

# Connect Claude Code

Install the Togo plugin in Claude Code with one command, sign in, and check the connection.

## Install the plugin

Run:

```bash
claude plugin install togo --marketplace togohq/plugins
```

The Togo plugin bundles Togo's MCP server with three skills Claude uses on its own: `togo-install`
sets Togo up in your app, `togo-analytics` answers questions from your data, and `togo-report`
writes a report for a period.

If Claude Code does not recognise `--marketplace`, add the marketplace first:

```bash
claude plugin marketplace add togohq/plugins
claude plugin install togo@togohq
```

Claude Code loads new plugins when a session starts, so **start a new Claude Code session** in
your app's folder.

## Sign in

1. In the new session, run `/mcp`, choose **plugin:togo:togo** and choose to authenticate.
2. Your browser opens Togo's sign-in page. New to Togo? Sign up on the same page; you come back to
   the approval when you are done.
3. Approve access: **Read and change** for an agent that sets up tracking, **Read only** for one
   that only answers questions ([Read only, or read and change](/docs/mcp#read-only-or-read-and-change)).

Togo emails you each time a new app connects to your account.

## Check the connection

Ask Claude:

```text
List my Togo projects.
```

It calls `list_projects` and answers with your projects and their write keys. From here, to set
up tracking in this app, ask it:

```text
Add Togo analytics to this app.
```

[Install Togo with your AI agent](/docs/install) lists what it does and what it asks of you.

## Keep the plugin current

Run `/plugin`, choose **togo** and update it, then start a new session. When the plugin is older
than Togo's server needs, the server tells Claude, and Claude tells you.

Added Togo with `claude mcp add` before? Remove that server, so Claude sees one Togo, not two:

```bash
claude mcp remove togo
```

## Stay signed in

A connection that is used stays signed in, up to a year; one left idle for 90 days signs out, and
Claude Code asks you to sign in again. To disconnect it yourself, see
[What a connection can see and do](/docs/mcp/security#disconnect-an-agent).
