Get Started

Install ContextKit and create your first scoped API key.

Human flow: create key in dashboard

Sign up, verify your email, then create scoped API keys and manage usage, payments, and webhooks from the dashboard.

Agent flow: create key from terminal

Autonomous agents can bootstrap account creation with curl, but email verification is required before issuing ck_live_ keys.

Self-serve onboarding for humans and agents.

Create an account from the dashboard or terminal, verify the email, then issue scoped API keys from the dashboard. Paid generation can still run directly through Bankr-hosted x402.

1. For paid AI generation, agents can call Bankr-hosted x402 directly with Bankr CLI/account payment access.
2. ContextKit API keys are for dashboards, analytics, token estimates, webhooks, and advanced direct API usage.
3. Email verification is required before dashboard access or API key creation. Full API keys are shown once when created.
npm package + API key bootstrap
npm install contextkit

curl -X POST https://91.107.248.223.sslip.io/api/dashboard/signup \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Autonomous Agent Operator",
    "email": "agent-owner@example.com",
    "password": "replace-with-12-plus-chars",
    "company": "Agent Lab"
  }'

bankr x402 call https://x402.bankr.bot/0xdace98cd605dd56b2edc66f0f4df3687f64fd824/contextkit-summarize \
  -X POST \
  -d '{"messages":[{"role":"user","content":"Summarize this deployment context for another agent."}]}'

API Reference

Typed context APIs with x402 pricing and signed webhooks.

Recommended: Bankr-hosted x402

Use these URLs for public paid calls. Bankr handles payment, then forwards the request to ContextKit. No ContextKit API key is required.

Advanced: direct API routes

Direct /api/* routes are for API-key users, dashboards, webhooks, analytics, token estimates, and custom x402 clients.

POST https://x402.bankr.bot/0xdace98cd605dd56b2edc66f0f4df3687f64fd824/contextkit-summarize

Summarize long conversations into concise optimized context.

$0.002

Request

{
  "messages": [
    {
      "role": "user",
      "content": "Long-running agent conversation..."
    }
  ]
}

Response

{
  "summary": "User is building an x402 context API...",
  "tokenReductionEstimate": 72,
  "keyDecisions": [
    "Use Bankr-hosted x402"
  ],
  "actionItems": [
    "Deploy updated service"
  ],
  "openQuestions": [],
  "risks": [
    "Email delivery requires verified domain"
  ],
  "confidence": 0.86
}

curl

bankr x402 call https://x402.bankr.bot/0xdace98cd605dd56b2edc66f0f4df3687f64fd824/contextkit-summarize \
  -X POST \
  -d '{"messages":[{"role":"user","content":"Long-running agent conversation..."}]}'

Webhook behavior: emits `summarization.completed` after successful generation and stores replayable audit state in ctx.files.

POST https://x402.bankr.bot/0xdace98cd605dd56b2edc66f0f4df3687f64fd824/contextkit-compress

Compress context into compact structured memory.

$0.003

Request

{
  "messages": [
    {
      "role": "user",
      "content": "Long-running agent conversation..."
    }
  ]
}

Response

{
  "compressedContext": "goal=ship ContextKit; constraints=Bankr-native,x402; next=deploy",
  "estimatedSavings": "78%",
  "micro": "Ship ContextKit with Bankr x402.",
  "compact": "ContextKit: Bankr-native x402 context API; next=deploy.",
  "extended": "ContextKit is a Bankr-native x402 context API with dashboard, analytics, and webhook flows.",
  "prioritizedFacts": [
    {
      "fact": "Bankr-hosted x402 is required",
      "importance": 10
    }
  ],
  "entities": {
    "project": "ContextKit",
    "people": [],
    "stack": [
      "Bankr",
      "x402"
    ],
    "deadlines": [],
    "constraints": [
      "Bankr-native"
    ]
  },
  "conflicts": [],
  "metrics": {
    "originalTokens": 120,
    "compressedTokens": 26,
    "actualReductionPercent": 78,
    "factRetentionScore": 0.9
  }
}

curl

bankr x402 call https://x402.bankr.bot/0xdace98cd605dd56b2edc66f0f4df3687f64fd824/contextkit-compress \
  -X POST \
  -d '{"messages":[{"role":"user","content":"Long-running agent conversation..."}]}'

Webhook behavior: emits `context.compressed` after successful generation and stores replayable audit state in ctx.files.

POST https://x402.bankr.bot/0xdace98cd605dd56b2edc66f0f4df3687f64fd824/contextkit-handoff

Generate a structured agent-to-agent continuation payload.

$0.003

Request

{
  "messages": [
    {
      "role": "user",
      "content": "Long-running agent conversation..."
    }
  ]
}

Response

{
  "goal": "Ship ContextKit",
  "importantFacts": [
    "Uses Bankr LLM Gateway"
  ],
  "constraints": [
    "x402 required"
  ],
  "recommendedNextActions": [
    "Deploy"
  ],
  "tone": "senior and direct",
  "userIntent": "launch product",
  "projectSummary": "ContextKit is context infrastructure for AI agents.",
  "currentState": "Production hardening underway.",
  "completedWork": [
    "x402 works"
  ],
  "inProgress": [
    "Auth hardening"
  ],
  "pendingTasks": [
    "Verify email domain"
  ],
  "knownIssues": [],
  "failedApproaches": [],
  "importantDecisions": [
    {
      "decision": "Use Bankr-hosted x402",
      "reason": "Best agent payment UX"
    }
  ],
  "blockers": [],
  "agentNotes": [
    "Keep endpoint names stable"
  ],
  "confidence": 0.88
}

curl

bankr x402 call https://x402.bankr.bot/0xdace98cd605dd56b2edc66f0f4df3687f64fd824/contextkit-handoff \
  -X POST \
  -d '{"messages":[{"role":"user","content":"Long-running agent conversation..."}]}'

Webhook behavior: emits `handoff.generated` after successful generation and stores replayable audit state in ctx.files.

POST https://x402.bankr.bot/0xdace98cd605dd56b2edc66f0f4df3687f64fd824/contextkit-profile

Extract durable user preferences for reusable agent memory.

$0.004

Request

{
  "messages": [
    {
      "role": "user",
      "content": "Long-running agent conversation..."
    }
  ]
}

Response

{
  "interests": [
    "AI agents"
  ],
  "riskTolerance": "unknown",
  "communicationStyle": "concise",
  "preferences": [
    "production APIs"
  ],
  "importantContext": [
    "Bankr ecosystem"
  ],
  "identity": {
    "profession": "founder/operator",
    "location": "unknown",
    "age": null
  },
  "skills": [
    "deployment debugging"
  ],
  "goals": [
    "launch ContextKit"
  ],
  "futurePlans": [
    "public launch"
  ],
  "behaviorPatterns": [
    "moves quickly"
  ],
  "dislikes": [
    "confusing UX"
  ],
  "careerStage": "startup builder",
  "managementIntent": true,
  "entrepreneurial": true,
  "confidence": 0.82
}

curl

bankr x402 call https://x402.bankr.bot/0xdace98cd605dd56b2edc66f0f4df3687f64fd824/contextkit-profile \
  -X POST \
  -d '{"messages":[{"role":"user","content":"Long-running agent conversation..."}]}'

Webhook behavior: emits `profile.extracted` after successful generation and stores replayable audit state in ctx.files.