Skip to main content

An intuitive AI coding assistant and interactive CLI tool that boosts developer productivity with intelligent automation and context-aware support.

Project description

Koder

Python License Code style: black Ruff PyPI Downloads

An intuitive AI coding assistant and interactive CLI tool that boosts developer productivity with intelligent automation and context-aware support.

🚀 Why this project

Yet another vibe coding assistant that aims to provide:

  • Universal AI provider support - Works with OpenAI, Claude, Gemini, and 100+ providers through intelligent auto-detection.
  • Persistent context - Remembers your conversations across sessions with smart token management.
  • Rich toolset - File operations, search, shell commands, and web access in one unified interface.
  • Zero-config start - Just set your API key and go, with automatic model selection and streaming support.
  • Session management - Organize work by project with isolated conversation histories.

📋 Requirements

  • Python 3.9 or higher.
  • API key and optional baseURL from OpenAI, Gemini, Anthropic or other AI providers.

🛠️ Installation

Using uv (Recommended)

uv tool install koder

Using pip

pip install koder

🤖 AI Provider Configuration

Koder automatically detects and uses the LLM provider from environment variables.

Model Selection

The KODER_MODEL environment variable controls which model to use:

# OpenAI models
export KODER_MODEL="gpt-4.1"

# Claude models (via LiteLLM)
export KODER_MODEL="claude-opus-4-20250514"

# Google models (via LiteLLM)
export KODER_MODEL="gemini/gemini-2.5-pro"

AI Providers:

OpenAI
# Required
export OPENAI_API_KEY="your-openai-api-key"

# Optional: Custom OpenAI-compatible endpoint
export OPENAI_BASE_URL="https://api.openai.com/v1"  # Default

# Optional: Specify model (default: gpt-4.1)
export KODER_MODEL="gpt-4o"
Gemini
# Required
export GEMINI_API_KEY="your-openai-api-key"

# Specify model (default: gemini/gemini-2.5-pro)
export KODER_MODEL="gemini/gemini-2.5-pro"
Anthropic Claude
# Anthropic Claude Opus
export ANTHROPIC_API_KEY="your-anthropic-key"
export KODER_MODEL="claude-opus-4-20250514"
Github Copilot
export KODER_MODEL="github_copilot/claude-sonnet-4"

Visit https://github.com/login/device and enter code XXXX-XXXXX shown in your first chat to authenticate.

Azure OpenAI
# Required
export AZURE_OPENAI_API_KEY="your-azure-api-key"
export AZURE_OPENAI_ENDPOINT="https://your-resource.openai.azure.com"
export KODER_MODEL="gpt-4o"  # Your Azure deployment model

# Optional
export AZURE_OPENAI_DEPLOYMENT="your-deployment-name"  # Defaults to KODER_MODEL
export AZURE_OPENAI_API_VERSION="2025-04-01-preview"   # Default version
Other AI providers (via LiteLLM)

LiteLLM supports 100+ providers including Anthropic, Google, Cohere, Hugging Face, and more:

# Google Vertex AI
export GOOGLE_APPLICATION_CREDENTIALS="your-sa-path.json"
export VERTEXAI_LOCATION="<your-region>"
export KODER_MODEL="vertex_ai/claude-sonnet-4@20250514"

# Custom OpenAI-compatible endpoints
export OPENAI_API_KEY="your-key"
export OPENAI_BASE_URL="https://your-custom-endpoint.com/v1"
export KODER_MODEL="openai/<your-model-name>"

⚡ Quick Start

Basic Usage

# Run in interactive mode
koder

# Execute a single prompt
koder -s my-project "Help me implement a new feature"

# Use a specific session
koder --session my-project "Your prompt here"

# Enable streaming mode
koder --stream "Your prompt here"

🧪 Development

Setup Development Environment

# Clone and setup
git clone https://github.com/feiskyer/koder.git
cd koder
uv sync

uv run koder

Code Quality

# Format code
black .

# Lint code
ruff check .

# Type checking
mypy .

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/your-feature
  3. Make your changes
  4. Run formating and linting: black . && ruff check .
  5. Commit your changes: git commit -am 'Add your feature'
  6. Push to the branch: git push origin feature/your-feature
  7. Submit a pull request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

koder-0.3.0.tar.gz (216.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

koder-0.3.0-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

Details for the file koder-0.3.0.tar.gz.

File metadata

  • Download URL: koder-0.3.0.tar.gz
  • Upload date:
  • Size: 216.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.29

File hashes

Hashes for koder-0.3.0.tar.gz
Algorithm Hash digest
SHA256 24e7a9830416521cf29737547858bbb98d48931ca6f04c64189a6b161fa1caa9
MD5 251e9cb2deca2c8008dac323862c0052
BLAKE2b-256 9be0d5dd5b4f3df0336ea0fb0ba23c07e706abeb62c2eba402e23db2b57bdc27

See more details on using hashes here.

File details

Details for the file koder-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: koder-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 50.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.29

File hashes

Hashes for koder-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c50734cecbde9dda3ce10d1e65f70a7aa2913930a2cc76c026ecf6da393f4550
MD5 adc130561c5b8b5185388a54a787a955
BLAKE2b-256 b0eec7d0b0ff7362ce4cd68340eee351d192472b23ff6b95eb6af9d59bd12e05

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page