Fireworks AIの動作方法
Fireworks AIは生成AIアプリケーションを秒単位で構築・実行するよう設計された最速の推論プラットフォームです。DeepSeek、Llama、Qwen、Mistralなどの人気オープンソースモデルへのサーバーレスアクセスを最適化されたスピード、高スループット、最小レイテンシで提供します。GPU管理の複雑さなしに信頼性が高く超高速なAIインフラが必要な開発者のために構築されています。推奨モデル
競争力のある価格と高いコンテキストウィンドウを持つ優れたコーディングモデルを推奨します。最新情報については、Fireworks AIの価格ページを参照してください。
| モデル | 価格(トークン100万当たり) | コンテキストウィンドウ |
|---|---|---|
Llama 4 Maverick 推奨 | 0.88 | 約131kトークン |
| Llama 4 Scout | 0.60 | 約131kトークン |
| DeepSeek V3 | $0.90 | 約128kトークン |
| Qwen3 235B | 0.88 | 約131kトークン |
APIキーの作成
Fireworks AIコンソールに直接アクセスして新しいAPIキーを作成します。 または、以下の手順に従ってください:- app.fireworks.aiにアクセスしてアカウントを作成するかサインインします
- ログイン後、アカウント設定のAPIキーページに移動します
- **「APIキーを作成」**ボタンをクリックします
- キーに説明的な名前を付けます(例:「Kodus」または好きな名前)
- **「作成」**をクリックしてキーを生成します
- APIキーをすぐにコピーして安全な場所に保存します — 再度見ることはできません
新しいアカウントにはプロジェクトを始めるための$1の無料クレジットが付きます。
使用方法
System Requirements
Recommended Hardware
Recommended Hardware
- CPU: 2+ cores - RAM: 8GB+ - Storage: 60GB+ free space
Required Software
Required Software
- Docker (latest stable version)
- Node.js (latest LTS version)
- Yarn or NPM (latest stable version)
- Domain name or fixed IP (for external deployments)
Required Ports
Required Ports
- 3000: Kodus Web App
- 3001: API
- 3332: Webhooks
- 5672, 15672, 15692: RabbitMQ (AMQP, management, metrics)
- 3101: MCP Manager (API, metrics)
- 5432: PostgreSQL - 27017: MongoDB
Internet access is required if you plan to connect to cloud-based Git
services (GitHub, GitLab, Bitbucket) or cloud LLM providers (OpenAI, Anthropic,
etc.). For self-hosted Git tools and on-prem LLMs within your network,
external internet access is optional.
Domain Name Setup (Optional)
If you're planning to integrate Kodus with cloud-based Git providers (GitHub, GitLab, or Bitbucket), you'll need public-facing URLs for both the Kodus Web App and its API. This allows your server to receive webhooks for proper Code Review functionality and ensures correct application behavior. We recommend setting up two subdomains:- One for the Web Application, e.g.,
kodus-web.yourdomain.com. - One for the API, e.g.,
kodus-api.yourdomain.com.
- Use a dedicated webhooks subdomain, e.g.,
kodus-webhooks.yourdomain.com, or - Keep using the API domain and route
/github/webhook,/gitlab/webhook, etc. to the webhooks service in your reverse proxy.
Note: If you're only connecting to self-hosted Git tools on your network and do not require public access or webhooks, you might be able to use a simpler setup, but this guide focuses on public-facing deployments.
Setup
Edit the environment file
Edit See Environment Variables Configuration for detailed instructions.
.env with your values using your preferred text editor.Success 🎉
When complete, Kodus Services should be running on your machine.
You can verify your installation using the following script:
Access the web interface
Once you access the web interface for the first time, you'll need to:
- Create your admin account - This will be the first user with full system access
- Configure your Git provider - Connect GitHub, GitLab, or Bitbucket following the on-screen instructions
- Select repositories for analysis - Choose which code repositories Kody will review
For detailed steps on the initial configuration process, refer to our Getting
Started Guide.
環境ファイルでFireworks AIを設定する
.env ファイルを編集してコア設定を構成します。LLMインテグレーションには、Fireworks AIを固定モードで使用します:
WebhookのURLはWebhooksサービス(ポート3332)に到達できる必要があります。専用webhooksドメインを使用するか、リバースプロキシで
/.../webhook をポート3332にルーティングします。固定モードはFireworks AIに最適です。超高速の推論スピードとセットアップ時間ゼロで最先端のオープンソースモデルへのアクセスを持つOpenAI互換APIを提供します。
Run the Installation Script
Set the proper permissions for the installation script:What the Installer Does
Our installer automates several important steps:- Verifies Docker installation
- Creates networks for Kodus services
- Clones repositories and configures environment files
- Runs docker-compose to start all services
- Executes database migrations
- Seeds initial data
http://localhost:3000 - you should see the Kodus Web Application interface.
リバースプロキシのセットアップ(本番環境向け)
WebhookとExternal Accessには、Nginxを設定します:Fireworks AI統合の確認
基本的なインストール確認に加えて、Fireworks AIが動作していることを確認します:トラブルシューティング
APIキーの問題
APIキーの問題
- APIキーがFireworks AIコンソールで正しくアクティブであることを確認します
- Fireworks AIアカウントに十分なクレジットがあるか確認します
.envファイルに余分なスペースがないことを確認します- 新しいアカウントには$1の無料クレジットが付いて始められます
モデルが見つからない
モデルが見つからない
- 設定のモデル名が正しくスペルされていることを確認します
- Fireworks AIのCurrentモデルライブラリでモデルが利用可能であることを確認します
- 推奨リストの別のモデルで試してください
- Fireworks AIモデルドキュメントを確認します
接続エラー
接続エラー
- サーバーが
api.fireworks.aiにアクセスできるインターネット接続を持っていることを確認します - ファイアウォールの制限がないか確認します
- 詳細なエラーメッセージについてAPI/ワーカーログを確認します
- 正しいAPIエンドポイントを使用していることを確認します
パフォーマンスの問題
パフォーマンスの問題
- Fireworks AIは業界をリードするスピードと最小レイテンシを提供します
- 最適なパフォーマンスのためにネットワーク接続を確認します
- エンタープライズワークロードには専用デプロイメントの使用を検討します
- API呼び出しを最適化するために使用パターンを監視します
レート制限
レート制限
- Fireworks AIはサーバーレスインフラで高いレート制限を提供します
- Fireworks AIダッシュボードで現在の使用量を確認します
- より高いスループットのために専用デプロイメントへのアップグレードを検討します
- エンタープライズのレート制限調整にはFireworks AIサポートに連絡します