Skip to main content

How Fireworks AI works

Fireworks AI is the fastest inference platform for generative AI, designed to build and run magical AI applications in seconds. The platform provides serverless access to popular open-source models like DeepSeek, Llama, Qwen, and Mistral with optimized speed, high throughput, and minimal latency. Built for developers who need reliable, blazing-fast AI infrastructure without GPU management complexity. We recommend good coding models with competitive pricing and high context windows.
For the most updated information, please visit Fireworks AIโ€™s pricing page.

Creating API Key

Fireworks AI Account is required to create API Key.
Go directly to Fireworks AI Console to create a new API Key. Or, follow these steps:
  1. Visit app.fireworks.ai and create an account or sign in
  2. Once logged in, navigate to the API Keys page in your account settings
  3. Click โ€œCreate API Keyโ€ button
  4. Give your key a descriptive name (e.g., โ€˜Kodusโ€™ or any name you prefer)
  5. Click โ€œCreateโ€ to generate the key
  6. Copy the API key immediately and save it somewhere secure - you wonโ€™t be able to see it again
New accounts come with $1 in free credits to get started with your projects.

How to use

System Requirements

  • Docker (latest stable) with the Compose plugin
  • Domain name or fixed IP if you want to receive Git webhooks from cloud providers (GitHub.com, GitLab.com, etc.)
Default host port mappings โ€” adjust in .env if any conflict.
  • 3000 โ€” Kodus Web App
  • 3001 โ€” API
  • 3332 โ€” Webhooks
  • 5432 โ€” PostgreSQL
  • 27017 โ€” MongoDB
  • 5672, 15672, 15692 โ€” RabbitMQ (AMQP, management UI, metrics)
  • 3101 โ€” MCP Manager (only if API_MCP_SERVER_ENABLED=true)
What ./scripts/install.sh brings up, based on your .env.Core (always on):
  • api โ€” main backend
  • worker โ€” code-review jobs
  • webhooks โ€” Git provider webhook receiver
  • kodus-web โ€” Next.js frontend
  • db_kodus_postgres, db_kodus_mongodb, rabbitmq โ€” local infrastructure. Skip with USE_LOCAL_DB=false / USE_LOCAL_RABBITMQ=false to point at managed instances.
Optional:
  • kodus-mcp-manager โ€” Model Context Protocol broker. Enable with API_MCP_SERVER_ENABLED=true. See MCP Manager.
  • worker-analytics โ€” Cockpit ingestion (DORA metrics, PR classifier). Self-hosted Enterprise only, not wired by default. See Analytics Worker.
Code review uses an AST graph + cross-file context that runs in a sandbox โ€” local (default, runs inside the worker) or e2b (paid remote sandbox). See Sandbox & AST Graph for the modes, caching behavior, and when to pick each.
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.
Webhooks are handled by a separate service (port 3332). You can either:
  • 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.
Both subdomains should have DNS A records pointing to your server's IP address. Later in this guide, we will configure a reverse proxy (Nginx) to route requests to these subdomains to the correct internal services. This setup is essential for full functionality, including webhooks and authentication.
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

1

Clone the installer repository

2

Copy the example environment file

3

Generate secure keys for the required environment variables

4

Edit the environment file

Edit .env with your values using your preferred text editor.
See Environment Variables Configuration for detailed instructions.
5

Run the installer

6

Success ๐ŸŽ‰

When complete, Kodus Services should be running on your machine. You can verify your installation using the following script:
7

Access the web interface

Once you access the web interface for the first time, you'll need to:
  1. Create your admin account - This will be the first user with full system access
  2. Configure your Git provider - Connect GitHub, GitLab, or Bitbucket following the on-screen instructions
  3. 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.

Configure Fireworks AI in Environment File

Edit your .env file and configure the core settings. For LLM Integration, use Fireworks AI in Fixed Mode:
Webhook URLs must reach the Webhooks service (port 3332). Use a dedicated webhooks domain or route /.../webhook to port 3332 in your reverse proxy.
Fixed Mode is ideal for Fireworks AI because it provides OpenAI-compatible APIs with blazing-fast inference speeds and access to cutting-edge open-source models with zero setup time.

Run the Installation Script

Looking for more control? Check out our docker-compose file for manual deployment options.
Set the proper permissions for the installation script:
Run the 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
๐ŸŽ‰ Success! When complete, the Kodus Web App and backend services (API, worker, webhooks, MCP manager) should be running on your machine. You can verify your installation by visiting http://localhost:3000 - you should see the Kodus Web Application interface.
Code Review features will not work yet unless you complete the reverse proxy setup. Without this configuration, external Git providers cannot send webhooks to your instance.

Set Up Reverse Proxy (For Production)

For webhooks and external access, configure Nginx:

Verify Fireworks AI Integration

In addition to the basic installation verification, confirm that Fireworks AI is working:
For detailed information about SSL setup, monitoring, and advanced configurations, see our complete deployment guide.

Troubleshooting

  • Verify your API key is correct and active in Fireworks AI Console
  • Check if you have sufficient credits in your Fireworks AI account
  • Ensure there are no extra spaces in your .env file
  • New accounts receive $1 in free credits to get started
  • Check if the model name is correctly spelled in your configuration
  • Verify the model is available in Fireworks AIโ€™s current model library
  • Try with a different model from our recommended list
  • Check the Fireworks AI models documentation
  • Verify your server has internet access to reach api.fireworks.ai
  • Check if there are any firewall restrictions
  • Review the API/worker logs for detailed error messages
  • Ensure youโ€™re using the correct API endpoint
  • Fireworks AI provides industry-leading speeds with minimal latency
  • Check your network connectivity for optimal performance
  • Consider using dedicated deployments for enterprise workloads
  • Monitor your usage patterns to optimize API calls
  • Fireworks AI provides high rate limits on serverless infrastructure
  • Check your current usage in the Fireworks AI dashboard
  • Consider upgrading to dedicated deployments for higher throughput
  • Contact Fireworks AI support for enterprise rate limit adjustments