Quickstart
Claude Code Infinite
Install:
npm install -g claude-code-infinite
Run:
ccc
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
Get your PolyChat API key
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)