# Quickstart

This guide runs Godelgate on your machine with a built-in demo server, connects Claude Code to it, and shows the gate blocking a data leak.

## Requirements

- Node.js 22.13 or newer
- An MCP client that supports Streamable HTTP, such as Claude Code, Cursor, VS Code or Codex

## 1. Install and build

```bash
npm install
npm run build
```

## 2. Start the gate

The sample `godelgate.yaml` connects a built-in demo server named `acme` with fake CRM, web and email tools, and defines one user, `alice`, whose key comes from `ALICE_KEY`.

```bash
export ALICE_KEY=$(openssl rand -hex 16)
export GODELGATE_ADMIN_TOKEN=$(openssl rand -hex 16)
npm start
```

You should see:

```text
[godelgate] connected acme: 4 tools
[godelgate] listening on :8080  (MCP endpoint /mcp, dashboard /app)
```

> If you don't set `GODELGATE_ADMIN_TOKEN`, Godelgate generates a random admin token for that run and prints it at startup.

## 3. Open the dashboard

Go to `http://localhost:8080/app` and sign in with your admin token. The **Tools** tab lists the four demo tools as `acme__read_customers`, `acme__fetch_url`, `acme__send_email` and `acme__get_time`, each pinned.

## 4. Connect Claude Code

```bash
claude mcp add --transport http godelgate http://localhost:8080/mcp \
  --header "Authorization: Bearer $ALICE_KEY"
```

Other clients are covered in [Connect your clients](/docs/connect-clients).

## 5. Watch it work

Continue with [See it work](/docs/see-it-work) to trigger the lethal-trifecta block and an approval, and watch both appear live in the dashboard.

## Next steps

- Connect your own servers: [MCP servers](/docs/mcp-servers)
- Label tools for containment: [Lethal-trifecta containment](/docs/trifecta)
- Write rules: [Policy rules](/docs/policy)
- Put it on a server: [Deployment](/docs/deployment)
