Skip to main content

deepflow-openagent-cli

Python command-line client for the OpenAgent OpenAPI: agents, conversations, SSE chat, tools, channels, documents, and knowledge bases.

Install

pip install deepflow-openagent-cli

Usage

export OPENAGENT_HOST="https://your-api-host"
export OPENAGENT_API_KEY="sk-..."
deepflow_openagent_cli docs list
deepflow_openagent_cli agents list

Equivalent module invocation:

python -m deepflow_openagent_cli docs list

Configure API host and key

Method Variable / flag
Host OPENAGENT_HOST or --host
API key OPENAGENT_API_KEY or --api-key

Legacy NEWAGENT_HOST and NEWAGENT_API_KEY are still read as fallbacks.

When using flags, put global flags before the command:

deepflow_openagent_cli --host http://localhost:5001 --api-key sk-... agents list

Common commands

deepflow_openagent_cli docs show chat.stream --json
deepflow_openagent_cli knowledge list --page 1 --per-page 10
deepflow_openagent_cli knowledge documents 1
deepflow_openagent_cli knowledge query-document 6670 --slice-id 512208 --line 1720

# Knowledge-base file library (requires config scope)
deepflow_openagent_cli knowledge directories create 1 --name "Policies"
deepflow_openagent_cli knowledge files create 1 \
  --directory-id 2 --name "Product Manual" --custom-version v1 \
  --original ./manual.pdf --markdown ./manual.md
deepflow_openagent_cli knowledge files list 1 --markdown-filter has-missing
deepflow_openagent_cli knowledge versions upload 1 3 \
  --custom-version v2 --original ./manual-v2.pdf
deepflow_openagent_cli knowledge versions attach-markdown 1 3 4 \
  --markdown ./manual-v2.md
deepflow_openagent_cli knowledge versions set-current 1 3 4
deepflow_openagent_cli knowledge versions original 1 3 4 --output ./manual-v2.pdf
deepflow_openagent_cli knowledge versions markdown 1 3 4 --output ./manual-v2.md

deepflow_openagent_cli chat 1 --message "Hello"
deepflow_openagent_cli steps 1 42
deepflow_openagent_cli steps get 1 42 100
deepflow_openagent_cli steps feedback 1 42 100 --rating like --comment "Helpful answer"

# Python code tool (create → update config → debug execute)
deepflow_openagent_cli tools create 1 --name order_query --tool-type python_code
deepflow_openagent_cli tools update 1 2 --json '{"config":{"code":"import openagent\nopenagent.set_output(openagent.args)","parameters_json":"{\"type\":\"object\",\"properties\":{\"order_id\":{\"type\":\"string\"}},\"required\":[\"order_id\"]}"}}'
deepflow_openagent_cli tools execute 1 2 --json '{"brief":"查订单","order_id":"A1"}'

Development (build wheel/sdist locally)

From this directory:

pip install -e ".[dev]"
pytest
python -m build

Upload to PyPI (use a new API token; never commit tokens):

python -m twine upload dist/*

When prompted, username is __token__ and password is the token value.

Metadata

Release files for deepflow-openagent-cli 0.1.5

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

Source distribution (sdist)

Source distribution for deepflow-openagent-cli 0.1.5
File Size Uploaded Provenance
deepflow_openagent_cli-0.1.5.tar.gz 20.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for deepflow-openagent-cli 0.1.5
File Interpreter ABI Platform
deepflow_openagent_cli-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 37.9 kB

Release files / deepflow_openagent_cli-0.1.5.tar.gz

Download URL deepflow_openagent_cli-0.1.5.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2222493cdb484a8e18f1bac791bcbf308980f14704656adcbbbb45c8878180e8
BLAKE2b-256 checksum
How to use checksums
003c7f2ddc0375d1eb528ede997da8db38733fd043f45a9b7c86c34eaf596d99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / deepflow_openagent_cli-0.1.5-py3-none-any.whl

Download URL deepflow_openagent_cli-0.1.5-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8af5012e9be02614d80ac19ed08a1d71827371ac43f45309464e1ef8590b1a0
BLAKE2b-256 checksum
How to use checksums
f9a5740dd82260190f9c50afbbaea7d0aa4515884defbed30f4774b303131562
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for deepflow-openagent-cli 0.1.5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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