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.1.tar.gz
(9.3 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
paimon-0.1.1-py3-none-any.whl
(10.1 kB
view details)
File details
Details for the file paimon-0.1.1.tar.gz.
File metadata
- Download URL: paimon-0.1.1.tar.gz
- Upload date:
- Size: 9.3 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 |
f12c410214a002ec1c6ba3c4d5b842054d8660b9c33f2f93947b62bc5dd93fe3
|
|
| MD5 |
cc0ceef9b4deb756b932b06d8f2944c6
|
|
| BLAKE2b-256 |
97c3957fe9040c307ceb5dd8232d50485e725b8ed7ae9869a7d588c81982c9a3
|
File details
Details for the file paimon-0.1.1-py3-none-any.whl.
File metadata
- Download URL: paimon-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.1 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 |
f992deb0f512b2693877431b9957a56d294f99f7c16dbddbc5ea59e62b9df601
|
|
| MD5 |
b10150f442929fc0de4c5038f883ce75
|
|
| BLAKE2b-256 |
1ff428403bc88e04b044a049bbdcda0aaccba8134772099986754f2f75987ecd
|