Documentation Index
Fetch the complete documentation index at: https://docs.kodus.io/llms.txt
Use this file to discover all available pages before exploring further.
Como o Novita funciona
A Novita é uma plataforma de infraestrutura serverless para IA, projetada para escalar modelos open-source com baixa latência e custo reduzido. Suporta centenas de modelos prontos para produção — incluindo Llama, Mistral, Claude e Stable Diffusion — e fornece APIs otimizadas, GPUs sob demanda e implantações de modelos personalizados sem nenhuma sobrecarga de DevOps.Modelos Recomendados
Recomendamos bons modelos de codificação com janela de contexto de +100k.Para informações mais atualizadas, visite o site da Novita.
| Modelo | Preço | Janela de Contexto |
|---|---|---|
Deepseek v3 0324 recomendado | $0.33/1.3 | ~128k tokens |
| Deepseek R1 0528 | $0.7/2.5 | ~128k tokens |
| Llama 4 Maverick Instruct | $0.17/0.85 | ~100k tokens |
Criando uma Chave de API
Acesse diretamente a página de Chaves de API da Novita para criar uma nova Chave de API. Ou siga estes passos:- Vá para o seu console Novita
- Clique no botão “Gerenciar Chaves de API” ou vá para a sua foto de perfil e clique em Chaves de API
- Clique em “Adicionar Nova Chave” e preencha com ‘Kodus’ ou qualquer nome que desejar
- Clique em “Confirmar”
- Copie a Chave de API e guarde-a em um lugar seguro
System Requirements
Recommended Hardware
Recommended Hardware
Sized for the default
local sandbox mode (kodus-graph + cross-file
context run inside the worker container).- CPU: 2+ cores (4+ recommended for repos above ~100k LOC)
- RAM: 8GB+ (16GB recommended when running the
localsandbox on large repos) - Storage: 60GB+ free space (Postgres holds the AST graph cache; grows with repo count and PR volume)
Required Software
Required Software
- 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.)
Required Ports
Required Ports
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)
Services
Services
What
./scripts/install.sh brings up, based on your .env.Core (always on):api— main backendworker— code-review jobswebhooks— Git provider webhook receiverkodus-web— Next.js frontenddb_kodus_postgres,db_kodus_mongodb,rabbitmq— local infrastructure. Skip withUSE_LOCAL_DB=false/USE_LOCAL_RABBITMQ=falseto point at managed instances.
kodus-mcp-manager— Model Context Protocol broker. Enable withAPI_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.
- 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.
Configurar a Novita no Arquivo de Ambiente
Edite o seu arquivo.env e configure as definições principais. Para a Integração de LLM, use a Novita no Modo Fixo:
As URLs de webhook devem alcançar o serviço de Webhooks (porta 3332). Use um domínio dedicado para webhooks ou roteie
/.../webhook para a porta 3332 no seu proxy reverso.O Modo Fixo é ideal para a Novita porque ela fornece APIs compatíveis com OpenAI e requer apenas uma chave de API. Isso simplifica significativamente a sua configuração.
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.
6. Configurar Proxy Reverso (Para Produção)
Para webhooks e acesso externo, configure o Nginx:Verificar a Integração com a Novita
Além da verificação básica de instalação, confirme que a Novita está funcionando:Solução de problemas
Problemas com Chave de API
Problemas com Chave de API
- Verifique se sua chave de API está correta e ativa no console da Novita
- Verifique se você tem créditos suficientes na sua conta Novita
- Certifique-se de que não há espaços extras no seu arquivo
.env
Modelo Não Encontrado
Modelo Não Encontrado
- Verifique se o nome do modelo está escrito corretamente na sua configuração
- Verifique se o modelo está disponível no seu plano Novita
- Tente com um modelo diferente da nossa lista recomendada
Erros de Conexão
Erros de Conexão
- Verifique se o seu servidor tem acesso à internet para alcançar
api.novita.ai - Verifique se há restrições de firewall
- Revise os logs da API/worker para mensagens de erro detalhadas