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:

kolega-code update
uv tool uninstall kolega-code

Running the installer again also updates an existing install to the latest released version.

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.5.1.tar.gz (622.0 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.5.1-py3-none-any.whl (545.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kolega_code-0.5.1.tar.gz
  • Upload date:
  • Size: 622.0 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.5.1.tar.gz
Algorithm Hash digest
SHA256 7db5317760929ab5f72a1d3f300455a56dc5cd3b63e566db77de031558b121f7
MD5 7e2381508af57c2011ac9b764503bc99
BLAKE2b-256 33c690e2ac02edc41fb76452389fa19e53494d9a5f29d4ebebec7c815e9edcc3

See more details on using hashes here.

Provenance

The following attestation bundles were made for kolega_code-0.5.1.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.5.1-py3-none-any.whl.

File metadata

  • Download URL: kolega_code-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 545.3 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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f41ba643903dd8a3526681ecb15c1fbb18b44b630a0634feed27f03bc2e8c88
MD5 637d04412abdd2d20660755448c5a4b7
BLAKE2b-256 eec9ab363b8fb35ffc1f987fffff13431410f9a0701b03a41a99e49a8a66d64b

See more details on using hashes here.

Provenance

The following attestation bundles were made for kolega_code-0.5.1-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