Quickstart
Claude Code Infinite
Install:
npm install -g claude-code-infiniteRun it from your project folder:
cccThat's the whole setup: the first time you run ccc, it gives you a link to PolyChat (press Enter to open it) to sign you up and show your MemTree key, then asks you to paste the key. No separate sign-up step.
Already signed up? Get your MemTree key
Needs Claude Code in your terminal, signed in with Claude Pro or Max.
Don't have Claude Code yet?
macOS / Linux
curl -fsSL https://claude.ai/install.sh | bash
Windows PowerShell
irm https://claude.ai/install.ps1 | iex
Then run claude once to sign in. The desktop app isn't enough: ccc needs the claude command in your terminal.
In Settings > Providers
- Set Base URL to https://polychat.co/api
- Paste in your PolyChat API key
- Choose a
memtree-model
Optional Settings
In Settings > Providers
- Set the Context Window Size to your model's limit, i.e.
200000formemtree-sonnet-4-thinking-low
In Settings > Context
- At the bottom, uncheck "Automatically trigger intelligent context condensing" - as we do this automatically
import openai
client = openai.OpenAI(
base_url="https://polychat.co/api",
api_key="YOUR_POLYCHAT_API_KEY"
)
response = client.chat.completions.create(
model="memtree-sonnet-4",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)