Skip to main content

paella

CI PyPI

An interactive AI agent in your terminal — like Claude Code.

Installation

One-liner (recommended — no Python needed):

curl -fsSL https://raw.githubusercontent.com/PaellaAI/paella/main/install.sh | sh

Homebrew:

brew install PaellaAI/tap/paella

pip (if you already have Python):

pip install paella-ai

All three install the paella command.

The interactive agent

Just run paella (or paella chat) to start an interactive session:

paella

On a real terminal this opens a full-screen app (scrolling transcript + anchored input). Piped/non-interactive input falls back to a line REPL automatically; force it with paella chat --classic.

You get a streaming chat loop with tool use — the agent can read files, list directories, run shell commands (with your approval), and search the web. Responses render as Markdown with syntax-highlighted code blocks; extended thinking is streamed inline.

Slash commands & prefixes

Command / prefix Description
/help show available commands
/model [name] switch model (Claude/OpenAI); no name opens a picker
/clear reset the context window
/copy copy the last reply to the clipboard
/compact summarize older turns to shrink context
/tools list the tools the agent can call
/exit, /quit leave (or exit, or ctrl+c twice)
!<cmd> run a shell command directly
@<path> attach a file (opens a file picker)

Models

Run /model for a picker across Claude (Opus 4.8, Fable 5, Sonnet 5, Haiku 4.5) and OpenAI (GPT-5 Codex, GPT-5, o4-mini), or /model <name> to switch directly — the backend is inferred from the id (gpt-*/o* → OpenAI, claude-* → Anthropic; or force with openai:<id>). Switching starts a fresh session.

Set credentials via environment variables or config:

export ANTHROPIC_API_KEY=sk-ant-...     # or: paella config set anthropic_api_key ...
export OPENAI_API_KEY=sk-...            # or: paella config set openai_api_key ...

Config is stored at ~/.config/paella/config.json. Relevant keys: backend, model, anthropic_api_key, openai_api_key, web (default on).

Context compaction

Long sessions are kept from overflowing the model's context window by auto-summarization: when the transcript grows past a threshold, the oldest turns are replaced by a single summary while the most recent turns are kept verbatim. Run /compact to trigger it manually. It rewrites history rarely and in one batch, so the compacted prefix stays cache-friendly. Config keys: compact (default true), compact_threshold_tokens (120000), compact_keep_tokens (40000).

Other commands

paella --version
paella config set|get|list|path

Development

This project uses uv.

uv sync                   # install deps into a local venv
uv run paella             # run the agent from source
uv run pytest             # run the test suite

Building & publishing

uv build                  # produces wheel + sdist in dist/
uv publish                # upload to PyPI

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paella_ai-1.0.2.tar.gz (76.3 kB view details)

Uploaded Source

Built Distribution

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

paella_ai-1.0.2-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file paella_ai-1.0.2.tar.gz.

File metadata

  • Download URL: paella_ai-1.0.2.tar.gz
  • Upload date:
  • Size: 76.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for paella_ai-1.0.2.tar.gz
Algorithm Hash digest
SHA256 03e96e537cb5df62e05e6a6bab79c03a62956b115d393ceb059e8282342c0b0e
MD5 67a4cc392f78463f1e3206539af7a4d8
BLAKE2b-256 b3586480eb0205872f416663976d66017d9facb3924913f4616107d755b0abab

See more details on using hashes here.

File details

Details for the file paella_ai-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: paella_ai-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 33.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for paella_ai-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5dc713b00ac9a1b760d86e5b40ae97f7c8a6879a539b113ce871658afd9c9d29
MD5 ab4066aa452a9bf62872dc965c97a4f4
BLAKE2b-256 e99fb0df2070234b6d4504d86cec852ef20faf96ae8920d3dc8ee69182c824ae

See more details on using hashes here.

Supported by

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