Skip to main content

praisonai-code

Agentic terminal CLI for PraisonAI — the terminal-native agent product (run, chat, code, warm runtime, CLI backends) extracted from the praisonai wrapper.

Analogues: opencode, codex, gemini-cli.

Status

C0–C5 complete. C6 integration gate verified — see src/praisonai/tests/C6_VERIFICATION.md.

Step Scope Status
C0 Scaffold Done
C1 runtime/ + cli_backends/ Done
C2 interactive/, execution/, ui/, output/, state/ Done
C3 Agentic commands Done
C4 Agentic features Done
C5 main.py, app.py, config/session/utils + shims Done
C6 Integration gate + sign-off Done
C7 Hot-path standalone (agentic CLI without wrapper import) Done
  • praisonai_code.runtime — warm local runtime (daemon + thin client).
  • praisonai_code.cli_backends — CLI backend implementations (e.g. Claude Code).
  • praisonai_code.llm — endpoint resolution, credentials, model catalogue.
  • praisonai_code.tool_resolver — YAML tool name resolution.

See src/praisonai/tests/C7_VERIFICATION.md for the hot-path sign-off checklist.

Dependency rules

praisonai (main)  →  depends on  praisonai-code
praisonai-code    →  depends on  praisonaiagents (core SDK)

praisonai-code also pulls in its own third-party runtime deps (rich, typer, click, textual, PyYAML, python-dotenv, litellm, mcp, pydantic — see pyproject.toml). The rules above govern the inter-package direction.

C7 (hot path complete): Standalone pip install praisonai-code supports core agentic terminal commands without importing the wrapper on the hot path. Approval backends resolve locally via praisonai_code.cli.features._approval_bridge (channel bots delegate to the wrapper). Optional features (observability sinks, framework adapters, bots/gateway) remain wrapper-only via praisonai_code._wrapper_bridge.

Standalone limits (pip install praisonai-code only)

The terminal-native commands (run, chat, code, doctor, daemon) live in praisonai_code.cli.commands.* and resolve via LazyCommandGroup without importing the wrapper. Only commands in _WRAPPER_RESIDENT_COMMANDS (see praisonai_code/cli/app.py) require pip install praisonai.

Command Works standalone? Notes
praisonai-code --version Yes
run --help, config, doctor Yes
run --output verbose "…" Yes In-process Agent (verified). run modes: silent (default), actions, verbose, json, stream
run "…" (default) Yes Resolves via praisonai_code.cli.commands.run
run --output actions "…" Yes (intended) Currently affected by an auto_save shadow-import bug — tracked separately
chat --output plain "…" Yes One-shot; interactive REPL also in code package. chat modes: actions (default), plain, verbose, json, silent
code --help Yes Full code assistant command registered
daemon start (foreground) Yes
daemon start --background Yes Spawns python -m praisonai_code.runtime
batch, docs, langfuse, flow, n8n, train, … No _WRAPPER_RESIDENT_COMMANDS — needs pip install praisonai
bot, gateway, pairing, … No Needs praisonai bot package

Known limitations:

  • praisonai-code --help may crash on Windows (cp1252) due to emoji in command descriptions — tracked separately.
  • Piped stdin (file | run) is not yet supported on Windows.

For bots, gateway, batch, observability sinks, and the wrapper-resident commands above, install the full wrapper: pip install praisonai.

Completed C7 steps:

  • praisonai_code._registry — vendored plugin registry (no wrapper import)
  • praisonai_code._version / runtime/descriptor.py — version from praisonai-code
  • praisonai_code.__main__ + praisonai-code console script — standalone entry
  • praisonai_code._logging — CLI logging without wrapper dependency
  • praisonai_code.llm.* — env, credentials, catalogue, config
  • praisonai_code._framework_availability, _safe_loader, tool_resolver — execution helpers
  • Namespace cleanup — praisonai_code.cli.features.* local imports on agentic path

Backward compatibility is preserved via PEP 562 shims at the old praisonai.* import paths, so pip install praisonai and from praisonai.cli.main import PraisonAI keep working unchanged.

Install

Recommended (includes wrapper + bots/gateway):

pip install praisonai

Standalone code package (agentic CLI only):

pip install praisonai-code
praisonai-code --version
python -m praisonai_code --help

Development / monorepo:

pip install -e src/praisonai-agents
pip install -e src/praisonai-code
pip install -e src/praisonai
python -c "import praisonai_code; print(praisonai_code.__version__)"

PyPI: Published as praisonai-code after praisonaiagents in the three-package release order (see pypi-release.yml).

Download files

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

Source Distribution

praisonai_code-0.0.30.tar.gz (715.9 kB view details)

Uploaded Source

Built Distribution

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

praisonai_code-0.0.30-py3-none-any.whl (866.3 kB view details)

Uploaded Python 3

File details

Details for the file praisonai_code-0.0.30.tar.gz.

File metadata

  • Download URL: praisonai_code-0.0.30.tar.gz
  • Upload date:
  • Size: 715.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for praisonai_code-0.0.30.tar.gz
Algorithm Hash digest
SHA256 b01db497e0175aa5e6410d3db93ca958fd126966e2c72fd5d387febdbd699b86
MD5 a9404390572164b7989d03b548e68f3e
BLAKE2b-256 a5a61f69015b331ece83d1467459acf50e22f5ddfb74e95d6f6059a558a1f193

See more details on using hashes here.

File details

Details for the file praisonai_code-0.0.30-py3-none-any.whl.

File metadata

  • Download URL: praisonai_code-0.0.30-py3-none-any.whl
  • Upload date:
  • Size: 866.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for praisonai_code-0.0.30-py3-none-any.whl
Algorithm Hash digest
SHA256 1459b7bfabffe93270cb8f177b6f8f65351d78be9792d85d22dd45aaaf56d1c6
MD5 43dda3d30291bf3c79ec00a9cfaf965f
BLAKE2b-256 2158a83eb9242b08e07a8cdbeb630fd3f60f18e72eb0446fb8cbcf80d106b5e8

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