Skip to main content

Local-first AI coding agent for the terminal

Project description

kolega-code

Kolega Code is a local-first AI coding agent for the terminal.

The package owns the kolega_code import namespace and provides the kolega-code command.

Install

Install with the public installer:

curl -fsSL https://kolega.dev/install-kolega-code.sh | sh

Or install directly from PyPI with uv:

uv tool install kolega-code

Verify the command is available:

kolega-code --version

Upgrade or uninstall:

uv tool upgrade kolega-code
uv tool uninstall kolega-code

Run the Textual UI and open the Settings tab to pick any provider and model from the catalog, choose the model's thinking effort, and save your API key:

kolega-code .

In the Textual UI, press Shift+Tab to switch between build mode and planning mode. Planning mode uses a standalone read-only planning agent; when it submits a complete plan, choose whether to implement it or keep discussing the plan.

All CLI sessions use the CLI-specific coding-agent prompt, including resumed sessions. Launching the UI starts a fresh thread by default. Resume an existing thread explicitly:

kolega-code . --resume
kolega-code . --resume <thread-or-session-id>

You can also use env/flag based configuration for non-UI commands. API key variables provide credentials only; set a provider/model explicitly or save one in the Settings UI:

export KOLEGA_CODE_PROVIDER=deepseek
export DEEPSEEK_API_KEY=...
kolega-code ask "summarize this repository" --project .
kolega-code ask "summarize this repository" --project . --provider deepseek --model deepseek-v4-pro
kolega-code sessions list --project .
kolega-code doctor --project .

The Settings UI exposes every model in the catalog (kolega_code/llm/specs.py) across all supported providers — the provider and model dropdowns are derived from that catalog, so adding a model there makes it selectable in the UI automatically. A saved UI selection is used for all agent model roles, and switching models resets thinking effort to that model's default. API keys are stored in the local CLI settings file with restrictive permissions. Existing environment and model/provider flag overrides continue to work, but API key variables alone never select a provider or model. Local session state is stored under the platform state directory unless KOLEGA_CODE_STATE_DIR is set.

From source

git clone https://github.com/kolega-ai/kolega-code.git
cd kolega-code
uv sync --extra dev
uv run kolega-code --version

Tests

Fast tests run by default:

./run_tests.sh

Some slow and integration tests require real provider credentials. To run them locally, create an ignored .env file from the example and fill only the keys you need:

cp .env.example .env
./run_tests.sh --all

The test runner loads .env through pytest and keeps existing shell environment variables higher priority than values in the file. You can pass additional pytest arguments through the wrapper:

./run_tests.sh kolega_code/agent/tests/llm/test_client.py -ra

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

kolega_code-0.2.0.tar.gz (582.1 kB view details)

Uploaded Source

Built Distribution

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

kolega_code-0.2.0-py3-none-any.whl (453.9 kB view details)

Uploaded Python 3

File details

Details for the file kolega_code-0.2.0.tar.gz.

File metadata

  • Download URL: kolega_code-0.2.0.tar.gz
  • Upload date:
  • Size: 582.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kolega_code-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ff1f6b3bf2796076f91c803167b8d8649887789f0d4c8755c3e5ce06dbc5d4cc
MD5 03cf08432d4ee0a9ca02a2e3117f361a
BLAKE2b-256 657ff6bfd5c96d22e58d12cb41d48a5f76c3f5b44aff8ac45bd0bb0b4e0d4bf2

See more details on using hashes here.

Provenance

The following attestation bundles were made for kolega_code-0.2.0.tar.gz:

Publisher: release.yml on kolega-ai/kolega-code

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kolega_code-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: kolega_code-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 453.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kolega_code-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b51ed06ce54da094b3ad6be7a819e95e8d2f72f58b89822d6ed72136b77671df
MD5 1ca85aa79cc386a366932bfcf6d5305a
BLAKE2b-256 3b61ac29657c263ea1ab0d8104df7f69697cfeb43310b901bd1a7202c49505cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for kolega_code-0.2.0-py3-none-any.whl:

Publisher: release.yml on kolega-ai/kolega-code

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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