ISMS Copilot Docs

Set up the model API from Claude Code or Grok

After one human pat-isms login, agents can mint sk-isms keys, check the credit balance, and open a credit checkout from the Account MCP.

Inhoud in het Engels

Deze pagina is nog niet vertaald naar deze taal. Hieronder staat de Engelse versie totdat de vertaling beschikbaar is.

This is the agent-native path for the OpenAI-compatible model API (sk-isms-… + prepaid credits). It is separate from chat Account MCP conversations (pat-isms-… usage under your chat plan).

Status: the key and credit tools (create_api_key, list_api_keys, revoke_api_key, get_api_credit_balance, create_api_credit_checkout) are live on the production Account MCP. They appear to your agent when its pat-isms token carries the matching Model API scopes. A human still creates the pat-isms token and pays in a browser; the console path works too.

Planes (do not mix)

PlaneCredentialBilling
Model APIsk-isms-…Prepaid API credits
Account MCPpat-isms-…Chat subscription

pat-isms never authenticates api.ismscopilot.com inference. sk-isms never authenticates Account MCP.

Happy path

  1. Human: Sign in to chat → Settings → Connected apps.
  2. Human: Create a pat-isms-… token with Model API scopes:
    • api_keys:read / api_keys:write
    • api_credits:read / api_credits:checkout
  3. Human: Register MCP, for example:
claude mcp add --scope user --transport http ismscopilot https://account.ismscopilot.com/v1/account/mcp \
  --header "Authorization: Bearer pat-isms-…"
  1. Agent (MCP tools):
    • create_api_key → store sk-isms-… once
    • get_api_credit_balance → if zero, create_api_credit_checkout with amount ≥ 20
  2. Human: Open the Stripe Checkout URL and pay (min $20). Success returns to platform.ismscopilot.com/credits.
  3. Agent: Poll get_api_credit_balance until > 0, then call:
curl https://api.ismscopilot.com/v1/chat/completions \
  -H "Authorization: Bearer sk-isms-…" \
  -H "Content-Type: application/json" \
  -d '{"model":"isms-fast","messages":[{"role":"user","content":"List 3 ISO 27001 access control themes."}]}'

Prefer omit max_tokens on thinking aliases, or use at least 1024 (see Models and regions).

Limits and safety

RuleDetail
Active keysMax 20 active sk-isms keys per user (console and MCP share the cap)
CheckoutMin $20; MCP path rate-limited (5 sessions / hour / user)
PaymentAlways a human browser; agents never charge a card
Revokerevoke_api_key or platform console

Always available (console)

If you prefer the browser, or your token lacks the Model API scopes:

  1. platform.ismscopilot.com/keys → create sk-isms
  2. platform.ismscopilot.com/credits → top up
  3. Follow Get an API key and first completion

Op deze pagina