Skip to main content

zorvex-cli

Zorvex 的命令行工具。Zorvex 是 LangGraph 智能体的自托管服务器,提供 LangSmith Agent Server 的 API,LangGraph SDK 以及基于它构建的客户端无需改动即可接入。

安装

uv tool install zorvex-cli    # 或:pip install zorvex-cli

服务器 zorvex-api 会一起安装。需要 Python 3.12 及以上版本,以及用于本地 PostgreSQL 的 Docker 或 Podman。

快速开始

zorvex new ./my-agent -t react-agent
cd my-agent
uv sync
uv run zorvex dev

zorvex dev 会在 PostgreSQL 未运行时用容器启动它,然后在 http://127.0.0.1:2026 提供项目中的图,代码改动后自动 重载。API 文档位于 http://127.0.0.1:2026/docs。首次运行会从 .env.example 生成 .env:在其中填写 OPENAI_API_KEY 或你所用模型服务商的密钥,然后重新启动。

from langgraph_sdk import get_client

client = get_client(url="http://127.0.0.1:2026")
thread = await client.threads.create()
async for part in client.runs.stream(
    thread["thread_id"],
    "my_agent",  # zorvex.json 中图的名字
    input={"messages": [{"role": "user", "content": "12.5 乘以 4 再加 7 等于多少?"}]},
    stream_mode="updates",
):
    print(part.event, part.data)

命令

命令 作用
zorvex new [PATH] 从模板创建项目(-t simple-chatbot 或 -t react-agent)
zorvex dev 运行带自动重载的开发服务器,必要时启动 PostgreSQL
zorvex serve 运行生产服务器,作为容器的启动命令
zorvex up [SERVICES] 用 Docker 或 Podman Compose 构建并启动 PostgreSQL、Redis 和服务器
zorvex down 停止它们(-v 同时删除数据卷)
zorvex validate 检查 zorvex.json
zorvex db upgrade | downgrade | current | history 数据库迁移

zorvex <command> --help 列出各命令的选项。

项目。 除 new 外,所有命令都作用于一个项目:当前目录下的 zorvex.json,或由 -c/--config、 ZORVEX_CONFIG 指定的文件。环境变量依次取自:-e/--env-file 指定的文件;否则 zorvex.json 的 env(相对于它的 文件,或直接写出的变量);否则 zorvex.json 旁边的 .env,缺失时 dev 和 up 会从 .env.example 生成。shell 中 已设置的变量保持原值,因此 zorvex db 连接的就是 zorvex dev 使用的数据库。up 和 down 不接受 -e。

dev 与 serve。

  • --host、--port:dev 默认 127.0.0.1 和 2026;serve 默认 0.0.0.0 和 PORT,未设置时为 2026。
  • --no-reload(dev):代码改动后不重启。
  • --debug [HOST:]PORT(dev):在 debugpy 下运行服务器(pip install 'zorvex-cli[debug]'),并等待调试器 连接。未指定主机时为 127.0.0.1;指定其他主机会暴露无鉴权的调试器。
  • --no-db-check、-f/--file(dev):不启动 PostgreSQL,或用另一个 Compose 文件启动它。
  • 其余参数传给 uvicorn;与 zorvex 自身选项同名的参数需放在 -- 之后: zorvex dev --ssl-certfile cert.pem --ssl-keyfile key.pem。

容器。 dev、up 和 down 通过 Docker 或 Podman 运行 Compose:用 ZORVEX_CONTAINER_RUNTIME=docker 或 podman 指定;未设置时,Docker 守护进程在运行则用 Docker,否则用 Podman,都没有则用 Docker。未运行的容器运行时会 用平台的常用命令启动(docker desktop start、open -a Docker、podman machine start 等),失败时 Zorvex 会显示 该命令。Compose 文件是 zorvex.json 旁边的 docker-compose.yml,或 -f 指定的文件;缺失时 dev 和 up 会创建它, 连同 Dockerfile 和 .dockerignore。其中的 PostgreSQL 就是服务器默认连接的数据库,新项目无需任何设置; POSTGRES_PORT 可修改其主机端口,DATABASE_URI 需随之修改。

了解更多

配置、部署和 API 兼容性见 Zorvex README。

基于 Apache License 2.0 许可发布。

Metadata

Release files for zorvex-cli 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zorvex-cli 0.0.6
File Size Uploaded Provenance Actions
zorvex_cli-0.0.6.tar.gz 18.7 kB With provenance Details for zorvex_cli-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zorvex-cli 0.0.6
File Interpreter ABI Platform Actions
zorvex_cli-0.0.6-py3-none-any.whl Python 3 none any Details for zorvex_cli-0.0.6-py3-none-any.whl

Total release size: 45.1 kB

Release files / zorvex_cli-0.0.6.tar.gz

Download URL zorvex_cli-0.0.6.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2f8caf0e5513eb13184482c014c52c726efd144a5035786bddc3870c8f31fbfd
BLAKE2b-256 checksum
How to use checksums
7154f412dfa28137fe75334c30ed781109bc311d1fa0ab2b751b8c438c9e5be3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / zorvex_cli-0.0.6-py3-none-any.whl

Download URL zorvex_cli-0.0.6-py3-none-any.whl
Size 26.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f837bc4df257d745985a5128b0535a51f4352b2531d40d5e0c8483521a025f3
BLAKE2b-256 checksum
How to use checksums
738b8053258c5aa8fecc89065341f1400fd76c3081591b9f3075e9681d27afdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for zorvex-cli 0.0.6

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zorvex_cli-0.0.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page