Use your own Claude.ai subscription in CogniForge
Normally, CogniForge pays Anthropic for every AI call by the token. If you already pay for a personal Claude Pro or Claude Max subscription, you can have CogniForge use it instead — so developing your project costs you nothing extra. This guide walks you through it from zero. You don't need to know anything about servers or networking; if you can copy-paste commands into a terminal, you can do this.
- A personal Claude Pro or Claude Max subscription (from claude.ai).
- Your build VM already connected to CogniForge — the same machine that runs your project's tests. If its status shows online under your project's Settings → Execution Targets, you're ready.
- A way to open a terminal on that VM (for most people: SSH, or just its keyboard if it's a machine on your desk).
- First: set up the provider, model, and agent routing (Steps 4–5 below) — this needs no project.
- Then: create your project. If document generation can't run yet (your build VM isn't registered until a project exists), the dashboard offers a Retry generation button — no harm done.
- Then: register the build VM in the project's Settings, do Steps 1–3 below on it, and hit Retry generation. From that point on, everything — documents included — runs on your subscription. The VM serves your whole workspace, so future projects skip this dance entirely.
1Open a terminal on your build VM
Everything in steps 1–3 happens on the VM, not on your laptop. If the VM is a cloud machine, connect with SSH (replace the address with your VM's):
ssh your-user@your-vm-addressIf the VM is a computer in front of you, just open its Terminal app.
2Install Claude Code on the VM
Claude Code is Anthropic's official command-line app for Claude. Install it by pasting this one line and pressing Enter:
curl -fsSL https://claude.ai/install.sh | bashWhen it finishes, close and reopen the terminal (or run source ~/.bashrc), then check it worked:
claude --versionIf you see a version number, it's installed. If you see "command not found", log out of the VM and back in, then try again.
3Sign in with your Claude.ai account
Start the sign-in flow on the VM:
claudeThe first time you run it, Claude Code asks how you want to sign in:
- Choose the Claude account with subscription option (not the API key option — the whole point is to use your subscription).
- It shows a link. Open that link in the browser on your laptop/phone, sign in to claude.ai as usual, and approve.
- The browser gives you a code — copy it, paste it back into the VM's terminal, press Enter.
You'll land in an interactive Claude session — type /exit to leave it. The login is saved on the VM; you won't need to repeat this.
4Tell CogniForge to use it
Now switch to CogniForge in your browser. You'll register your VM's Claude as a model:
- Go to Admin → AI Models and click Add custom model.
- Choose new provider, and for the adapter pick "Claude Code on your build VM (dev mode — your own subscription)". Give it any name you like (e.g. "My Claude subscription").
- Leave the base URL empty — empty means "find my build VM automatically." No addresses, no ports.
- For the model: name it (e.g. "Claude Sonnet (my subscription)"), set the model identifier to sonnet (or opus if your plan includes it), and set all prices to 0 — you're not paying per token.
5Route the platform's AI agents to it
CogniForge's work is done by named agents (implementation, architecture, and so on). Each one is routed to a model — point them at yours:
- Still in Admin → AI Models, find the agent routing section.
- For each agent you want on your subscription, select your new model as the primary.
- Strongly recommended: set a normal platform model as the fallback. If your VM is off or your subscription hits its usage limit, CogniForge switches to the fallback automatically instead of stopping your work.
6Check that it works
- In Admin → AI Models, scroll to the Playground, pick an agent you routed, type anything, and hit Send.
- Look at Recent invocations just above it: a new row should appear with your model's name and a cost of $0.000000. That's your subscription doing the work.
If something doesn't work
- "No online build VM with Claude Code available" — the VM is off, its agent isn't running, or Claude Code isn't installed/signed in on it. Check the VM shows online in Settings → Execution Targets, then re-run claude --version on the VM.
- Calls suddenly failing after heavy use — you've likely hit your subscription's usage limit. If you set a fallback model (Step 5), work continues on it automatically; otherwise wait for the limit to reset.
- Signed into the wrong account? On the VM run claude logout (or claude /logout), then repeat Step 3.