Skip to main content

Paimon

Paimon

Paimon is a coding agent that lives in your terminal. It reads and edits files in the current directory and runs commands, asking before it touches anything.

Install

uv tool install paimon   # or: pip install paimon

Getting started

paimon

Or run it without installing anything:

uvx paimon

The first launch asks for a provider, model, API base and key, and saves them to ~/.config/paimon/default/config.json. Then just type what you want done.

While it runs: Shift+Tab switches how much the agent may do on its own (read: ask before writing files or running commands, edit: edits inside the working directory go through, yolo: never ask), Esc interrupts the current turn, Ctrl+P opens the command palette (switch provider or profile, new or resume session, show the model's thinking, compact the context), Ctrl+C quits.

Write @path/to/file in a prompt to hand a file to the agent.

Sessions

Every conversation is saved. Paimon prints the command that brings one back when you leave:

paimon -r            # choose a session started in this directory
paimon -r a1b2c3     # resume one by id
paimon -c            # resume the most recent one
paimon sessions      # list them (--json for machines)

Other ways to run it

paimon --mode edit                  # start in a less cautious permission mode
paimon --web                        # the same UI in a browser (--port, default 8000)
paimon -p "what does cli.py do?"    # one answer on stdout, no UI
cat log.txt | paimon -p "summarize this"
paimon --model zai:glm-4.7          # this model for this run only
paimon --profile work               # a separately configured account

-p never stops to ask, so anything the current mode would prompt for is refused instead; pass --mode edit or --mode yolo if the run needs to change files. Add --output-format json for one JSON event per line, and --timeout/--max-tool-calls to bound an unattended run.

Calling Paimon from another agent

Everything above works without a terminal, so a code agent (Claude Code, Codex, a script) can drive Paimon as a subprocess: check paimon status --json, log in with paimon login --model provider:name --api-key-env VAR if needed, run paimon -p ... --output-format json, and resume the session id from the final result line later. paimon install-skill (--target claude|codex, or --dest DIR) installs a skill file that teaches the calling agent this workflow.

Configuration

~/.config/paimon/<name>/config.json holds each profile's model settings (default unless --profile says otherwise). Long conversations can be summarized in place near the context limit by adding:

{
  "compaction": {
    "enabled": true,
    "context_window": 128000,
    "reserve_tokens": 16384,
    "keep_recent_tokens": 20000
  }
}

Sessions live in ~/.local/share/paimon/sessions/ (PAIMON_DATA_HOME overrides). File changes render nicer if delta is installed.

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.2.tar.gz (75.0 kB view details)

Uploaded Source

Built Distribution

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

paimon-0.1.2-py3-none-any.whl (57.9 kB view details)

Uploaded Python 3

File details

Details for the file paimon-0.1.2.tar.gz.

File metadata

  • Download URL: paimon-0.1.2.tar.gz
  • Upload date:
  • Size: 75.0 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":null,"id":"forky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for paimon-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f4abac9e8fb930e7ece999b9bad2e74d8efedcd3a576306271507fa47a1f1e23
MD5 19c1ec80da76001db03088a27e259c6f
BLAKE2b-256 7ca443b50e3ce2e1ace8f0b62bfe7a79daee93aa3064927b0e3385e4963914dc

See more details on using hashes here.

File details

Details for the file paimon-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: paimon-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 57.9 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":null,"id":"forky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for paimon-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f0f55cd6e546f7fa379816345931edf84c8d16277ae0577c849c006d1ed8f9aa
MD5 b019bbe7cc635bec2ad3bb807885d084
BLAKE2b-256 7117de5ca32ec9e30200fecd1235de3c0e574dbcdc9aec938bf7157c60652573

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page