← Back to home

Installation

AgenticKode runs entirely in Docker. A single docker compose up -d brings up the backend, frontend, worker, and database.

Prerequisites

  • Docker >= 24.0 and Docker Compose v2
  • A git provider account (GitHub, GitLab, Gitea, or Bitbucket)
  • At least one AI provider (Claude CLI, Codex CLI, OpenCode, or a local Ollama server)
  • A workspace server accessible via SSH (can be the same machine)

Clone the Repository

git clone https://github.com/mechemsi/agentickode.git
cd agentickode

Configure Environment Variables

Copy the example environment file and fill in your values:

cp .env.example .env

Required Variables

VariableDescription
DATABASE_URLPostgreSQL connection string (default provided for Docker)
SECRET_KEYApplication secret for session signing and encryption

AI Provider Keys

Configure at least one AI provider:

VariableDescription
ANTHROPIC_API_KEYAPI key for the Claude CLI agent
OLLAMA_BASE_URLOptional — URL of your Ollama server (e.g., http://ollama:11434) for local models

Git Provider Tokens

Configure the providers you use:

VariableDescription
GITHUB_TOKENGitHub personal access token with repo scope
GITLAB_TOKENGitLab personal access token with api scope
GITEA_TOKENGitea access token
GITEA_BASE_URLGitea instance URL (e.g., https://gitea.example.com)
BITBUCKET_USERNAMEBitbucket username
BITBUCKET_APP_PASSWORDBitbucket app password with repository permissions

Notification Channels (Optional)

VariableDescription
SLACK_WEBHOOK_URLSlack incoming webhook URL
DISCORD_WEBHOOK_URLDiscord webhook URL
TELEGRAM_BOT_TOKENTelegram bot token
TELEGRAM_CHAT_IDTelegram chat ID for notifications

Start the Stack

docker compose up -d

This starts:

  • backend — FastAPI API server on port 8000
  • frontend — React/Vite UI on port 5173
  • worker — Background worker that runs flow prompts (a single agent call per run)
  • db — PostgreSQL database

The database migrations run automatically on first start.

Verify the Installation

Open the UI at http://localhost:5173 and check the Settings > Health page. All services should show a green status.

You can also verify from the command line:

curl http://localhost:8000/api/health

Development Environment

For local development with hot-reload and debugging tools:

docker compose -f docker-compose.dev.yml up -d

The dev compose file mounts source directories and enables auto-reload for both backend and frontend.

Updating

Pull the latest changes and rebuild:

git pull
docker compose up -d --build

Database migrations apply automatically on startup.

Next Steps