無料AIプロバイダー「Cerebras」セットアップガイド
- 日本語
- English
- 简体中文
🆓 なぜCerebrasなのか?
OpenClawでエージェントを動かすには、AIの「脳」となるLLMプロバイダーが必要です。最初の一歩として、このガイドでは完全無料で、驚異的な推論速度を持つ「Cerebras」のセットアップ手順を画像付きで丁寧に解説します。
主要プロバイダー比較表
| プロバイダー | 無料枠 | 推論速度 | おすすめ用途 |
|---|---|---|---|
| Cerebras | ✅ 非常に大きい | ⚡⚡⚡ 超高速 | 日常の定型タスク全般(最推奨) |
| OpenAI (GPT-4o) | ❌ 有料のみ | ⚡⚡ 高速 | 複雑なコーディング |
| Google (Gemini) | ✅ あり(制限あり) | ⚡⚡ 高速 | 長文の分析・要約 |
| Ollama (ローカル) | ✅ 完全無料! | ⚡ PC性能次第 | オフライン・プライバシー重視 |
Step 1: Cerebrasアカウントの作成
- https://cloud.cerebras.ai/ にアクセスします。
- 「Sign Up」ボタンをクリックし、メールアドレスまたはGitHubアカウントで登録します。
- メール認証を完了させてください。
Step 2: APIキーの発行
- ログイン後、左側メニューから 「API Keys」 を選択します。
- 「Create API Key」 ボタンをクリックします。
- 表示されたキー(
csk-で始まる長い文字列)を必ずコピーして安全な場所に保存してください。
画面を閉じると二度と確認できません。必ずパスワードマネージャー(1Passwordなど)やメモ帳にコピーしてから進んでください。
Step 3: OpenClawにAPIキーを登録する
ワークスペースの設定ファイルにキーを書き込みます。
{
"api_keys": {
"CEREBRAS_API_KEY": "csk-xxxxxxxx-ここにペースト-xxxxxxxx"
}
}
Step 4: 動作確認
エージェントを起動して、簡単な質問で脳が動いているかテストします。
openclaw agent --agent main
起動後、チャット画面で以下のように入力してみてください。
「こんにちは!あなたの名前と今使っているモデルを教えてください。」
AIが llama3.1-8b (Cerebras) を名乗って応答すれば、セットアップは完了です 🎉
利用量制限について
Cerebrasの無料枠はかなり寛大(1分あたり30リクエスト、1日あたり約1,000リクエスト目安)ですが、無制限ではありません。 1日に何度もエージェントを起床させる運用(Cronジョブが5分おきなど)をする場合は、ダッシュボードでレート制限に到達していないかたまに確認してください。
🆓 Why Cerebras?
To run an OpenClaw agent, you need an LLM provider as its "brain." As your very first step, this guide walks you through the setup of Cerebras—a provider with a completely free tier and insanely fast inference speed.
Provider Comparison
| Provider | Free Tier | Speed | Recommended Use |
|---|---|---|---|
| Cerebras | ✅ Very Generous | ⚡⚡⚡ Blazing | All routine tasks (Top Pick) |
| OpenAI (GPT-4o) | ❌ Paid Only | ⚡⚡ Fast | Complex coding |
| Google (Gemini) | ✅ Limited | ⚡⚡ Fast | Long-document analysis |
| Ollama (Local) | ✅ Totally Free! | ⚡ Depends on HW | Offline & privacy-first |
Step 1: Create a Cerebras Account
- Go to https://cloud.cerebras.ai/.
- Click "Sign Up" and register with your email or GitHub account.
- Complete email verification.
Step 2: Generate an API Key
- After logging in, select "API Keys" from the left menu.
- Click "Create API Key."
- Copy the key immediately (a long string starting with
csk-) and save it somewhere safe.
You will not be able to view it again after closing the page. Copy it to a password manager (like 1Password) or a note before proceeding.
Step 3: Register the API Key in OpenClaw
Write the key into your workspace configuration file:
{
"api_keys": {
"CEREBRAS_API_KEY": "csk-xxxxxxxx-paste-your-key-here-xxxxxxxx"
}
}
Step 4: Verification
Start the agent and test with a simple question:
openclaw agent --agent main
Then type:
"Hello! Tell me your name and which model you are currently using."
If the AI responds identifying itself as llama3.1-8b (Cerebras), your setup is complete 🎉
Rate Limits
The free tier is generous (~30 req/min, ~1,000 req/day), but not unlimited. If you run frequent Cron jobs (e.g., every 5 minutes), periodically check the dashboard to ensure you're not hitting rate limits.
🆓 为什么选择 Cerebras?
要运行 OpenClaw 代理,您需要一个 LLM 提供商作为它的"大脑"。作为第一步,本指南将详细介绍如何设置 Cerebras——一个拥有完全免费套餐和惊人推理速度的提供商。
主要提供商对比
| 提供商 | 免费额度 | 推理速度 | 推荐用途 |
|---|---|---|---|
| Cerebras | ✅ 非常慷慨 | ⚡⚡⚡ 极快 | 所有日常任务(首选推荐) |
| OpenAI (GPT-4o) | ❌ 仅付费 | ⚡⚡ 快速 | 复杂编程 |
| Google (Gemini) | ✅ 有限 | ⚡⚡ 快速 | 长文档分析 |
| Ollama (本地) | ✅ 完全免费! | ⚡ 取决于硬件 | 离线与隐私优先 |
第一步:创建 Cerebras 账户
- 访问 https://cloud.cerebras.ai/。
- 点击 "Sign Up",使用电子邮件或 GitHub 账户注册。
- 完成电子邮件验证。
第二步:生成 API 密钥
- 登录后,从左侧菜单中选择 "API Keys"。
- 点击 "Create API Key" 按钮。
- 立即复制显示的密钥(以
csk-开头的长字符串),并保存到安全的地方。
关闭页面后将无法再次查看。请务必在继续操作前将其复制到密码管理器(如 1Password)或记事本中。
第三步:在 OpenClaw 中注册 API 密钥
将密钥写入工作空间配置文件:
{
"api_keys": {
"CEREBRAS_API_KEY": "csk-xxxxxxxx-在此粘贴您的密钥-xxxxxxxx"
}
}
第四步:验证
启动代理并用简单问题进行测试:
openclaw agent --agent main
然后输入:
"你好!请告诉我你的名字和你当前使用的模型。"
如果 AI 回复确认自己是 llama3.1-8b(Cerebras),则表示设置成功 🎉
速率限制说明
免费套餐额度相当充裕(约每分钟 30 次请求,每天约 1,000 次请求),但并非无限制。如果您运行频繁的定时任务(例如每 5 分钟一次),请定期检查仪表板以确保未超出限制。