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
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 select Moonshot Kimi K2.6 or DeepSeek V4 Pro 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 set MOONSHOT_API_KEY, DEEPSEEK_API_KEY, or keep using env/flag based configuration for non-UI commands:
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 supports Moonshot kimi-k2.6 and DeepSeek deepseek-v4-pro. A saved UI selection is used for all agent model roles and API keys are stored in the local CLI settings file with restrictive permissions. Existing environment and model/provider flag overrides continue to work. 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kolega_code-0.1.0.tar.gz.
File metadata
- Download URL: kolega_code-0.1.0.tar.gz
- Upload date:
- Size: 566.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d244fb2ab89b43caef2f5fe24b05905651a4635a49189034f10d55820daf6b05
|
|
| MD5 |
f353b7b58dbe5dffd976b94ed09dda6e
|
|
| BLAKE2b-256 |
cb3d5a1084304dc8a17bda17a252be7fcedb45ac5f4dbec7b5c7e156c7363fb2
|
Provenance
The following attestation bundles were made for kolega_code-0.1.0.tar.gz:
Publisher:
release.yml on kolega-ai/kolega-code
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kolega_code-0.1.0.tar.gz -
Subject digest:
d244fb2ab89b43caef2f5fe24b05905651a4635a49189034f10d55820daf6b05 - Sigstore transparency entry: 1823994675
- Sigstore integration time:
-
Permalink:
kolega-ai/kolega-code@d7a7351870d054d6466bdb7d1c5bfce192485493 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kolega-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d7a7351870d054d6466bdb7d1c5bfce192485493 -
Trigger Event:
push
-
Statement type:
File details
Details for the file kolega_code-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kolega_code-0.1.0-py3-none-any.whl
- Upload date:
- Size: 433.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
378ef71ac15161e19a07a0ce8b936e04e475fc457deb31d1d333b1ea791f9739
|
|
| MD5 |
67e4a020d824a3d3ec06f544e5314ee1
|
|
| BLAKE2b-256 |
de74662f7d561469398e3ba534b101915e88610e050bfecb759feda5d0084f47
|
Provenance
The following attestation bundles were made for kolega_code-0.1.0-py3-none-any.whl:
Publisher:
release.yml on kolega-ai/kolega-code
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kolega_code-0.1.0-py3-none-any.whl -
Subject digest:
378ef71ac15161e19a07a0ce8b936e04e475fc457deb31d1d333b1ea791f9739 - Sigstore transparency entry: 1823994732
- Sigstore integration time:
-
Permalink:
kolega-ai/kolega-code@d7a7351870d054d6466bdb7d1c5bfce192485493 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kolega-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d7a7351870d054d6466bdb7d1c5bfce192485493 -
Trigger Event:
push
-
Statement type: