Skip to main content

A CLI-focused code assistant for AI-assisted development

Project description

Coda Terminal Logo

Coda - AI Code Assistant

A powerful, modular AI code assistant that brings the best of AI-powered development directly to your terminal.


License: MIT Python Code style: black

โœจ What is Coda?

Coda is your AI pair programmer that lives in your terminal, built with a modular architecture that supports multiple AI providers including Oracle OCI GenAI, OpenAI, Anthropic, Google, and 100+ more via LiteLLM.

๐Ÿ—๏ธ Modular Architecture

Coda is built with a clean, three-layer architecture:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    Apps Layer                    โ”‚
โ”‚         (CLI, Web UI, Plugins, Custom)          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                 Services Layer                   โ”‚
โ”‚    (Integration, Orchestration, Workflows)       โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                   Base Layer                     โ”‚
โ”‚ (Config, Theme, Providers, Session, Search, etc) โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Base Modules

  • ๐Ÿ”ง Config: Unified configuration management
  • ๐ŸŽจ Theme: Terminal UI and formatting
  • ๐Ÿค– Providers: AI integration
  • ๐Ÿ’ฌ Session: Conversation persistence
  • ๐Ÿ” Search: Semantic code search
  • ๐Ÿ“Š Observability: Logging and metrics

๐Ÿš€ Quick Start

Try without installing

# Run directly with uvx (no installation needed!)
uvx --from coda-code-assistant coda

Install from PyPI

# Install with pip
pip install coda-code-assistant

# Or install with uv
uv pip install coda-code-assistant

# Run Coda
coda

Install from source

# Clone the repository with submodules
git clone --recursive https://github.com/djvolz/coda-code-assistant.git
cd coda-code-assistant

# Install with uv (recommended)
uv sync

# Run Coda
uv run coda

Using Individual Modules

from coda.base.config import Config
from coda.base.providers import ProviderFactory

# Initialize configuration
config = Config()

# Create a provider
factory = ProviderFactory(config.to_dict())
provider = factory.create("openai")

# Start chatting
response = provider.chat(
    messages=[{"role": "user", "content": "Hello!"}],
    model="gpt-4"
)
print(response["content"])

๐Ÿ“– Documentation

In-Repository Docs

Wiki Documentation

For comprehensive documentation, visit our Wiki:

๐ŸŽฏ Key Features

  • ๐ŸŒ Provider Support: Works with Oracle OCI GenAI, Ollama, OpenAI, Anthropic, Google, and 100+ providers
  • ๐Ÿงฉ Modular Design: Use only the components you need
  • ๐Ÿ’ป Terminal-First: Designed for developers who live in the command line
  • ๐Ÿง  Smart AI Modes: Specialized modes for coding, debugging, explaining, and reviewing
  • ๐Ÿ’พ Session Management: Save, resume, and branch conversations
  • ๐ŸŽจ Beautiful Interface: Rich terminal UI with syntax highlighting
  • ๐Ÿ”ง Tool Integration: File operations, web search, and more via MCP
  • ๐Ÿ“Š Diagram Rendering: Create flowcharts, UML diagrams, and graphs with diagram-renderer
  • ๐Ÿงช Well-Tested: Comprehensive test suite ensures reliability

๐Ÿ› ๏ธ Example Applications

Check out our example applications to see Coda modules in action:

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development

# Install development dependencies
uv sync --dev

# Run tests
uv run pytest

# Run type checks
uv run mypy coda

# Format code
uv run black .
uv run ruff check --fix

๐Ÿ“„ License

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

๐Ÿ”— Links


Made with โค๏ธ by the Coda community

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

coda_code_assistant-2025.8.22.910.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

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

coda_code_assistant-2025.8.22.910-py3-none-any.whl (406.8 kB view details)

Uploaded Python 3

File details

Details for the file coda_code_assistant-2025.8.22.910.tar.gz.

File metadata

File hashes

Hashes for coda_code_assistant-2025.8.22.910.tar.gz
Algorithm Hash digest
SHA256 9851e018bed060aa062a570af361e72760f6a5bacf14f31263aa58243682cb5d
MD5 8113ce9f3c1a3481b7e229e6b1bb5cc4
BLAKE2b-256 415180f0ea5d77eea7a4444fbbe8d8c9b4afb95cfb2a0b1622e499330664d790

See more details on using hashes here.

File details

Details for the file coda_code_assistant-2025.8.22.910-py3-none-any.whl.

File metadata

File hashes

Hashes for coda_code_assistant-2025.8.22.910-py3-none-any.whl
Algorithm Hash digest
SHA256 28d0f4708d29e76c43c24f99b7769f0f577ac4bc2c18b92adbbffbb816a9dbbe
MD5 679db5020dc897030ffe5f23be285103
BLAKE2b-256 8bcb5660c832ae884c851f227a69f029780fa1bbeebc22504a235efc0be91bad

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