A previous release had provenance metadata, but this release does not. View details.
This release is a pre-release and may not be stable for production use.
psi-agent
中文 | English
A portable and componentized agent framework.
Introduction
psi-agent is built on two core principles:
- Portability: Copy just the
workspacedirectory to migrate your agent completely. - Componentization: Agents are assembled from independent components that communicate via Unix sockets, ensuring loose coupling.
Installation
Using uvx (Recommended)
For quick one-off usage without cloning the repository:
uvx psi-agent <component> <subcommand> [options...]
# e.g., uvx psi-agent session --workspace ./workspace ...
Using pip
pip install psi-agent
Using uv
uv add psi-agent
Quick Start
- Create a workspace directory with your tools and skills (or use an example from
examples/):
mkdir -p workspace/{tools,skills,systems}
See examples/a-simple-bash-only-workspace/ for a minimal example, or examples/an-openclaw-like-workspace/ for a more complete setup.
- Start the session:
psi-agent session \
--workspace ./workspace \
--channel-socket ./channel.sock \
--ai-socket ./ai.sock
- Start an AI provider (e.g., OpenAI-compatible):
psi-agent ai openai-completions \
--session-socket ./ai.sock \
--model <model-name> \
--api-key <your-api-key> \
--base-url <provider-api-url> # e.g., https://openrouter.ai/api/v1
- Start a channel to interact with your agent session:
psi-agent channel repl --session-socket ./channel.sock
CLI Interfaces
psi-agent provides two CLI interfaces:
-
Subcommand interface (preferred):
psi-agent <component> <subcommand>- Works with
uvxwithout cloning the repository - Single entry point, easier to discover
- Examples:
psi-agent ai openai-completions,psi-agent channel repl
- Works with
-
Standalone commands:
psi-<component>-<subcommand>- Shorter to type
- Useful in scripts
- Examples:
psi-ai-openai-completions,psi-channel-repl
Both interfaces are functionally identical. The subcommand interface is recommended for general use.
Components
psi-agent consists of four component types:
| Component | Purpose |
|---|---|
psi-ai-* |
LLM provider adapters (OpenAI, Anthropic, etc.) |
psi-session |
Agent runtime loop, handles messages and tool calls |
psi-channel-* |
Message channels (REPL, Telegram, Feishu, etc.) |
psi-workspace-* |
Workspace packaging and mounting tools |
Available Commands
After installation, these commands are available:
Subcommand format (preferred):
psi-agent ai openai-completions- OpenAI-compatible completion serverpsi-agent ai anthropic-messages- Anthropic messages serverpsi-agent session- Agent session runtimepsi-agent channel repl- Interactive REPL interfacepsi-agent channel cli- CLI channel interfacepsi-agent channel telegram- Telegram bot channelpsi-agent workspace pack- Package workspace to squashfspsi-agent workspace unpack- Extract squashfs to directorypsi-agent workspace mount- Mount squashfs as overlayfspsi-agent workspace umount- Unmount workspacepsi-agent workspace snapshot- Create workspace snapshot
Standalone format (also available):
psi-ai-openai-completionspsi-ai-anthropic-messagespsi-sessionpsi-channel-replpsi-channel-clipsi-channel-telegrampsi-workspace-packpsi-workspace-unpackpsi-workspace-mountpsi-workspace-umountpsi-workspace-snapshot
Documentation
For detailed documentation including workspace structure, tool development, and configuration, see CLAUDE.md.
License
GNU Affero General Public License v3.0 - see LICENSE.md for details.
Metadata
Release files for psi-agent 0.0.1a20260430
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Loss of provenance
These files do not have provenance metadata, despite files in a prior release including this data.
We recommend further investigation before installing these files. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| psi_agent-0.0.1a20260430.tar.gz | 421.0 kB | Without provenance | Details for psi_agent-0.0.1a20260430.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| psi_agent-0.0.1a20260430-py3-none-any.whl | Python 3 | none | any | Details for psi_agent-0.0.1a20260430-py3-none-any.whl |
Total release size: 509.9 kB
Release files / psi_agent-0.0.1a20260430.tar.gz
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | psi_agent-0.0.1a20260430.tar.gz |
|---|---|
| Size | 421.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
570fcd10bb287156ab8b9433732b51322eb3fc24368730d0dd1513baf57a7e2a
|
|
BLAKE2b-256 checksum How to use checksums |
f3a4efefc732bfb91919aa539de537f21cf5e547a991270ba92c14f491e4000d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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}
|
Release files / psi_agent-0.0.1a20260430-py3-none-any.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | psi_agent-0.0.1a20260430-py3-none-any.whl |
|---|---|
| Size | 88.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
239303d629a89708c6512f7952ebd5aef81f0a58c0b3bb64c7c91e7ba2c42423
|
|
BLAKE2b-256 checksum How to use checksums |
3cffef39ce93b575c3de03bccc0d478961dd0ccc576d8ae409ec0126ba66872a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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}
|
Security for psi-agent 0.0.1a20260430
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Loss of provenance
A previous release of these files had provenance metadata, but this release does not.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Release comparison
- Removed 0.0.1a5 2 files With provenance
- Added 0.0.1a20260430 2 files Without provenance
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.