Skip to content

Quick Start

This guide walks you through setting up Contox from scratch. By the end, your AI coding assistant will have persistent memory of your project. Every step can be completed from the dashboard UI or the CLI -- choose whichever you prefer.

Prerequisites

  • An AI coding tool such as Claude Code, Cursor, Windsurf, Copilot, Cline, or Aider
  • A project you want to give your AI memory for
  • Node.js 18+ if you plan to use the CLI or MCP server

Step 1: Sign up

Create your account at contox.dev. After signing up, you land on the onboarding wizard that walks you through creating your first organization, project, and connecting your tools.

Tip

Already signed up? Go directly to the Contox Dashboard to manage your projects, memory, and settings.

Step 2: Create an API key

From the Dashboard

  1. Open Settings > API Keys in the dashboard
  2. Click the Create API Key button
  3. Enter a descriptive name (e.g., "CLI - MacBook Pro" or "MCP Server - Work")
  4. Click Create -- the full key appears in a dialog with a copy button
  5. Copy it immediately -- it is only shown once

The API Keys tab shows all your keys with their name, a prefix for identification, and the last-used timestamp.

Warning

Store your API key somewhere safe before closing the dialog. Keys are SHA-256 hashed server-side and cannot be retrieved later.

Step 3: Install a client

Choose at least one client to connect your AI tool to Contox:

The CLI is the universal interface that works with any AI coding tool.

bash
npm install -g contox-cli

Verify the installation:

bash
contox --version

Then store your API key:

bash
contox login -k <your-api-key>
contox whoami  # Verify the connection

Option B: MCP Server (for Claude Code)

The MCP server gives Claude Code direct access to Contox tools in its tool palette.

bash
npm install -g @contox/mcp-server

Then add a .mcp.json in your project root:

json
{
  "mcpServers": {
    "contox": {
      "command": "contox-mcp",
      "env": {
        "CONTOX_API_KEY": "your-api-key",
        "CONTOX_TEAM_ID": "your-team-id"
      }
    }
  }
}

Option C: VS Code Extension

Install the Contox extension from the VS Code Marketplace (contox.contox-vscode). It captures git commits automatically and manages sessions without any manual effort.

Tip

You can set up all three clients from the Setup & Integrations page in the dashboard. It provides copy-paste commands, deep links for VS Code, and API key quick access.

Step 4: Create your project

From the Dashboard

  1. Open the Projects page in the dashboard
  2. Click the New Project button in the top-right corner
  3. Enter a project name (e.g., "my-saas-app") and an optional description
  4. Choose visibility: Public (all team members can access) or Private (only invited members)
  5. Click Create

Your project is created instantly. You can see its Project ID and Team ID in the project settings (click the gear icon on the project card).

From the CLI

Create the project and initialize in one step:

bash
cd /path/to/your/project
contox init -t <your-team-id> -n "My Project"

Or link to a project you already created in the dashboard:

bash
contox init -t <your-team-id> -p <project-id>

This creates a .contox.json file in your project root.

Step 5: Scan your codebase

Give Contox an instant understanding of your project structure.

From the CLI

bash
contox scan

The scanner analyzes your project and generates 15-20 structured sub-contexts covering routes, components, libraries, hooks, dependencies, and configuration.

From the Dashboard

After scanning, you can browse the results in the Memory page. The Brain tab shows the hierarchical tree of all scanned knowledge, organized by schema keys like root/routes, root/components, and root/dependencies.

Step 6: Start coding with memory

When you start a session with your AI coding assistant, it loads your project memory automatically:

  • Claude Code (MCP) -- Calls contox_get_memory at session start (triggered by the CLAUDE.md protocol)
  • Other tools -- Run contox memory and paste the output, or use contox export --format cursor to generate a .cursorrules file
  • VS Code Extension -- Captures session events automatically in the background

Step 7: Save your first session

At the end of your coding session, save what was accomplished:

From the CLI

bash
contox save "Built user authentication with JWT tokens"

From the MCP Server (Claude Code)

Claude Code uses the contox_save_session tool automatically at the end of a session. The CLAUDE.md protocol instructs it to save when explicitly asked.

Monitoring enrichment in the Dashboard

After saving, the data goes through the enrichment pipeline. You can watch the progress in real time:

  1. Open the Memory page and switch to the Sessions tab
  2. Find your session in the list -- it shows status, event count, and timestamps
  3. Click the session to see its detail view with the Pipeline Timeline
  4. The timeline shows the pipeline stages: EnrichDeep Enrich (if a GitHub repo is linked) → EmbedDedupDrift Check
Pipeline Progress2/4 steps
Enrich12s3,240 tokens
Embed4s
Dedup
Drift Check
  1. Once complete, the extracted memory items appear in the Brain tab
Info

The enrichment pipeline uses AI to extract structured knowledge from your session events. The AI model depends on your plan: Small (fast) for Free/Personal plans, Medium (higher quality) for Team/Business/Enterprise. Paid plans can override this per-project in Project Settings.

What happens next

From this point forward, every new AI session in this project will have access to:

  • What you built and when
  • Architectural decisions you made
  • Coding conventions you established
  • Bugs you encountered and how you fixed them
  • Pending tasks and technical debt

The more you use Contox, the smarter your AI becomes about your specific project. You can review, approve, or edit all extracted knowledge from the Memory page in the dashboard.

Next steps