Set up your engine & workspace — on your own laptop
This page covers the two steps that are specific to running everything — thinking and coding — on your own laptop, with nothing rented. It's Part 1 and Part 2 of the full "idea to first pull request" guide — you'll go back and forth between that guide and this one; each note below tells you exactly when.
1Set up your engine
Your engine is the machine that actually runs your Claude subscription for CogniForge — both the planning documents and, later, the code itself.
1a. Install Docker
Install Docker Desktop from docker.com if you don't already have it. Open it and wait until it says it's running.
1b. Register this laptop with CogniForge
- In your project's Settings, go to Execution Targets → Register VM (it's called a VM in the product even though yours is your own laptop — the mechanism is identical).
- Click Register — you'll get a one-time install command. Copy it.
- Paste and run that command in a terminal on your laptop (Mac: Terminal app; Windows: PowerShell). It installs CogniForge's own small background agent and registers this machine.
- Back in CogniForge, refresh Execution Targets — within seconds it should show Online. If it doesn't, re-check Docker is actually running.
1c. Install Claude Code and sign in with your subscription
- In the same terminal, run:
curl -fsSL https://claude.ai/install.sh | bash - Run claude, choose "Claude account with subscription" (not API key), and follow the on-screen link to sign in with your Claude.ai account in a browser. Paste the code back into the terminal when asked. This login is saved on this machine.
1d. Tell CogniForge to use it
- Go to Admin → AI providers → Add custom model (this part is tenant-wide, not project-specific).
- Choose the provider adapter "Claude Code on your build VM (dev mode — your own subscription)", leave the base URL box empty, set the model identifier to sonnet (or opus if your subscription includes it), and set every price field to 0. Save.
- Go to Admin → Model routing and set this new model as the primary model for every agent listed. This makes every part of CogniForge's own thinking — planning documents and, later, code — run on your subscription.
2Set up your coding workspace
This is where your laptop also becomes a place code gets written interactively, using the CogniForge VS Code extension.
2a. Open VS Code
If you don't have it, install VS Code from code.visualstudio.com and open it normally.
2b. Get the repository onto this machine
- In CogniForge, open your project's Repositories tab and click Clone command next to your repository — copy it. It already has your credentials embedded, which matters for the next step.
- In a terminal on your laptop, paste and run that command. Don't use VS Code's own Clone Repository button for this one — it can sign you in through VS Code's own GitHub account integration, which only your clicks inside VS Code get to use. The headless Claude Code session that implements your tickets later runs as a plain background process with no such integration, and needs the repo's own credentials on disk to push anything — this command is what puts them there.
- Back in VS Code, File → Open Folder… and open the folder you just cloned into.
2c. Install the CogniForge extension
- In CogniForge, go to Admin → IDE integrations and click Download extension (.vsix).
- In VS Code, open the Extensions panel, click the … menu at the top, choose Install from VSIX…, and pick the file you downloaded.
2d. Connect it
- In CogniForge, click your avatar → API keys → New API key, give it a name, copy the key it shows you (only shown once).
- In VS Code, click the CogniForge icon in the activity bar, enter your platform URL and paste the key, click Connect. It should turn green and say Connected.
- Click Connect Claude ↔ Platform. If this fails saying claude can't be found, you skipped Part 1c above — go back and install the CLI.