- Moonshot AI's free tier includes trial credits usable across all Kimi models — no credit card at signup
- Free tier rate limits: approximately 3 RPM and 40k TPM — sufficient for development and low-volume personal agents
- The 128k context model (
moonshot-v1-128k) is accessible on the free tier, not restricted to paid plans - OpenClaw's built-in retry logic handles free-tier 429 errors automatically with proper config
- When free credits run out, paid billing is per-token with no monthly minimum — low-volume users pay very little
Free tiers on AI APIs usually mean crippled models or such tight limits they're useless for anything real. Moonshot's free tier is different. You get actual Kimi access — including 128k context — with enough quota to build and test a functioning OpenClaw agent before committing a dollar. Here's how to set it up correctly so you don't waste a single free token.
What the Free Tier Actually Gets You
Moonshot AI provides trial credits to all new registrants at platform.moonshot.cn. As of early 2025, these credits are sufficient to run several hundred typical agent calls at the 8k context tier, or dozens of calls at 128k context. The exact credit amount varies and Moonshot has adjusted it over time — create the account to see your current balance.
The free tier is not a degraded model. You get the same moonshot-v1-8k, moonshot-v1-32k, and moonshot-v1-128k models available to paid users. The difference is rate limits, not capability.
Here's what the free tier rate limits look like in practice:
| Metric | Free Tier | Paid Tier (Base) |
|---|---|---|
| Requests per minute (RPM) | ~3 RPM | 60 RPM |
| Tokens per minute (TPM) | ~40,000 TPM | 500,000+ TPM |
| Model access | 8k, 32k, 128k | 8k, 32k, 128k |
| Credit card required | No | Yes |
Three requests per minute sounds limiting. For a personal research agent that runs a few times an hour, it's plenty. For a production system handling concurrent user requests, you'll hit the wall fast. Know your use case before deciding whether to stay on free or upgrade.
If you're building an async background agent — one that processes a document or research task once every few minutes — the free tier handles it indefinitely after your trial credits run out, you simply add a payment method. The rate limit only becomes a problem at concurrent or high-frequency usage.
Getting Your Moonshot API Key
Registration at platform.moonshot.cn requires a phone number for verification. The platform is available internationally — no VPN needed, no regional restriction on the API endpoint itself. The interface is primarily in Chinese but navigable with a browser translation tool.
- Go to platform.moonshot.cn and register with your phone number
- Verify the SMS code sent to your number
- Navigate to the API Keys section (API密钥 in Chinese)
- Click Create API Key and give it a descriptive name
- Copy the key immediately — Moonshot shows it only once
Store the key in a .env file or your system's secret manager. Never commit it to source control. We'll get to the exact OpenClaw config in the next section — but first, note that the API key prefix for Moonshot keys is sk-, which looks identical to OpenAI keys. Don't mix them up in your config files.
OpenClaw Configuration for Free Kimi Access
The gateway config for Kimi is the same whether you're on the free or paid tier. The only difference is the key you provide. Here's the complete setup:
# .env
MOONSHOT_API_KEY=sk-your-moonshot-api-key-here
# gateway.yaml
providers:
kimi:
api_key: "${MOONSHOT_API_KEY}"
base_url: "https://api.moonshot.cn/v1"
timeout: 120 # 128k calls can be slow — extend timeout
retry:
max_retries: 5
base_delay: 20 # 20s base delay handles free tier rate limits
backoff: exponential
Then your agent config:
# agents/research-agent.yaml
name: research-agent
provider: kimi
model: moonshot-v1-32k # use 32k for most tasks, reserve 128k for large docs
system_prompt: |
You are a research assistant. Analyze the provided content and
return a structured summary with key findings and citations.
max_tokens: 2048
temperature: 0.3
The retry block is the critical addition for free-tier users. With a 3 RPM limit, you will hit 429 errors if any two calls land within the same minute. The exponential backoff config catches these and retries automatically. With base_delay: 20 and exponential backoff, a first retry comes at 20 seconds, the second at 40 seconds — well within the free tier's recovery window.
Free tier calls are processed in a shared queue and can take longer than paid tier calls. For 128k context requests, set your OpenClaw provider timeout to at least 120 seconds. The default 30-second timeout will cause false timeouts on large documents before the model has finished generating.
Handling Rate Limits Gracefully in OpenClaw
Here's where most people stop. They hit a 429, see the error in logs, and think the integration is broken. It isn't — the free tier rate limit is working as designed. OpenClaw's retry logic handles it automatically with the right config.
What a 429 response from Moonshot looks like in OpenClaw logs:
[WARN] kimi provider: rate limit exceeded (429)
retrying in 20s (attempt 1/5)
[WARN] kimi provider: rate limit exceeded (429)
retrying in 40s (attempt 2/5)
[INFO] kimi provider: request succeeded on attempt 3
This is the retry logic working. The agent eventually gets its response. The downstream cost is latency — your agent takes longer to respond, but it does respond. For async workflows this is acceptable. For real-time chat interfaces, consider upgrading to the paid tier where 60 RPM makes 429s rare.
You can also implement rate limit awareness at the agent routing level. Set a max_concurrent value in your agent config to prevent multiple calls from firing simultaneously:
# agents/research-agent.yaml (addition)
concurrency:
max_concurrent: 1 # only one call at a time on free tier
queue_timeout: 300 # wait up to 5 minutes in queue before failing
Maximizing Your Free Quota
The free credits have a finite total. Spend them strategically during development and you'll get more done before needing to add a payment method.
Use the smallest model that works. Run moonshot-v1-8k for development and testing. It's cheaper per token and the free credits last longer. Only switch to 32k or 128k when you're testing actual long-context functionality.
Sound familiar? You spend free credits testing edge cases that are better handled with a local model. Use Ollama with a small model for unit testing your agent logic. Reserve Kimi free credits for integration tests that specifically test long-context behavior.
Set explicit max_tokens on every call. Kimi's default output length can be generous. An agent that asks for a long summary and gets a 3,000-token response uses far more quota than one capped at 800 tokens for the same task. Set max_tokens to the minimum your output actually needs.
Cache responses during development. OpenClaw supports response caching via the cache block in your agent config. Enable it during development so repeated test calls with the same input don't burn tokens. Disable caching when you move to production testing.
# agents/research-agent.yaml (development only)
cache:
enabled: true
ttl: 3600 # cache responses for 1 hour during development
Common Mistakes on the Kimi Free Tier
- Not setting the base_url — without
base_url: "https://api.moonshot.cn/v1"in gateway.yaml, OpenClaw can't reach Moonshot's endpoint. This is the single most common config error. - Using 128k context for every call — each 128k call burns significantly more of your free credit allocation than an 8k call. Match context size to actual input length.
- Not configuring retry logic — without the retry block, your agent fails hard on 429 errors instead of waiting and retrying. Add the retry config as shown above.
- Setting the timeout too low — the default 30-second OpenClaw provider timeout causes fake failures on large context calls. Set it to 120 seconds minimum for Kimi.
- Running concurrent calls on the free tier — two simultaneous calls from the same key guarantees a 429 on the second one. Set
max_concurrent: 1in your agent config. - Not caching during development — every iteration of testing a prompt against the same document burns credits. Cache responses in development mode and only disable it when testing variable inputs.
Frequently Asked Questions
Is the Kimi free tier usable for real OpenClaw agent workflows?
Yes, but with constraints. The free tier works for development, testing, and low-volume personal projects. Rate limits of around 3 RPM and 40k TPM mean it can't handle high-concurrency production workloads. For a single-user agent that runs a few times per day, the free tier is genuinely sufficient.
How do I get a free Kimi API key for OpenClaw?
Register at platform.moonshot.cn. New accounts receive free trial credits automatically — no credit card required at signup. Once registered, create an API key under the API Keys section and add it to your OpenClaw gateway.yaml under the kimi provider block.
What are the rate limits on the Kimi free tier?
Free tier limits are approximately 3 requests per minute and 40,000 tokens per minute as of early 2025. These limits apply per API key. You cannot bypass them by making concurrent calls from the same key. Upgrading to a paid plan raises limits to 60 RPM and higher TPM tiers.
Can I use the 128k context model on the Kimi free tier?
Yes. The moonshot-v1-128k model is accessible on the free tier. The rate limits apply regardless of which model variant you choose. Long-context calls count more against your TPM limit, so free-tier users should batch large documents carefully and avoid concurrent 128k calls.
How do I handle rate limit errors from Kimi in OpenClaw?
OpenClaw's provider error handling catches 429 responses and applies exponential backoff by default. Tune the retry_delay and max_retries settings in your agent config. For the free tier, setting max_retries to 5 with a 20-second base delay handles most rate limit situations gracefully.
What happens when my free Kimi credits run out?
Moonshot AI stops processing API requests once free credits are exhausted. OpenClaw will log a 402 or 429 error. Add a payment method to platform.moonshot.cn to continue. Paid usage is billed per token — there is no minimum monthly commitment, so low-volume users pay very little.
A. Larsen has connected OpenClaw to over a dozen LLM providers, including free-tier configurations for teams building under budget constraints. Specializes in rate limit management, retry architecture, and cost-efficient agent design for early-stage AI products.