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
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.

Download files

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

Source Distribution

deepflow_openagent_cli-0.1.4.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

deepflow_openagent_cli-0.1.4-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file deepflow_openagent_cli-0.1.4.tar.gz.

File metadata

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

File hashes

Hashes for deepflow_openagent_cli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7a86096a6441e3be4423522cbac3082d88b037bf8a735a31c067644d80993dc4
MD5 5dddf9a8d0a3f8b3a008a67fb4b08aac
BLAKE2b-256 2568978e3462087c446636e01c06b7b355a904ccff8f3b2273770df091401227

See more details on using hashes here.

File details

Details for the file deepflow_openagent_cli-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for deepflow_openagent_cli-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 536361b375d70e2ce82be4780323199f555bb5dd5fda82d2217a6d3ed09ce203
MD5 95debea8d03c1ffc56cd6ac291b99ed7
BLAKE2b-256 fc0965103e56b57f76564f352368ad34b6bdaa1669b8b07809ca6444f32ab1a1

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.5

2 files

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.1

2 files

0.1.0

2 files

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