A minimal code agent built on litellm + textual
Project description
Paimon
A minimal terminal code agent built on litellm (LLM access) and textual (TUI).
Features (MVP)
- Streaming agent loop: LLM + tool calls until the task is done
- Four tools:
read_file,write_file,edit_file,bash - Live streaming output + reasoning display in a Textual UI
- Confirmation prompt before dangerous actions (
bash,write_file,edit_file)
Setup
Set these environment variables (uses an OpenAI-compatible endpoint via the
litellm openai/ prefix):
| Variable | Description | Example |
|---|---|---|
PAIMON_API_KEY |
API key for the endpoint | tp-... |
PAIMON_MODEL |
litellm model id | openai/mimo-v2.5-pro |
PAIMON_API_BASE |
base URL of the endpoint | https://token-plan-cn.xiaomimimo.com/v1 |
Run
uv run paimon # or: uv run main.py
Layout
| File | Role |
|---|---|
paimon/config.py |
model config |
paimon/tools.py |
tool schemas + execution |
paimon/agent.py |
UI-agnostic agent loop (yields typed events) |
paimon/app.py |
Textual TUI |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
paimon-0.1.0.tar.gz
(7.2 kB
view details)
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 paimon-0.1.0.tar.gz.
File metadata
- Download URL: paimon-0.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e50f61410b769550ed7313383192f4261fe8694549d8555914dbf8f084f60f62
|
|
| MD5 |
80cb2d622966b0aeefc13fc9f05033cf
|
|
| BLAKE2b-256 |
9f71ef7365c93ef0daa25cf0552bf4c40d31cbcbd554ff67f07c194146823c30
|
File details
Details for the file paimon-0.1.0-py3-none-any.whl.
File metadata
- Download URL: paimon-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41e4e77046622c232be2c96d3653bb339158ee67cfdb62d0f42699212bf0f99c
|
|
| MD5 |
f8c9d370c73eb7a738027b4294884dcb
|
|
| BLAKE2b-256 |
4535f79b0f8d097a71d567962ef7610fc37fa1f225ed6939f4d0c0393e948f44
|