Skip to main content

deliberaide-cli

deliberaide-cli is a stateful command-line harness for the DeliberAIde v2 API. It wraps the running FastAPI server over HTTP and WebSockets, keeps a saved profile, and exposes every discovered route through generated command groups.

What it supports

  • One-shot commands for the current HTTP route surface
  • One-shot commands for the current WebSocket route surface
  • Interactive shell mode when you run deliberaide-cli with no subcommand
  • Browser-based CLI sign-in through the DeliberAIde web app
  • Saved base URLs, cookies, and default IDs per profile
  • Machine-readable output with --json
  • Binary downloads with --download

Install

From the repository root:

python -m pip install -e .\agent-harness

If you prefer a project virtual environment, run the same command with that Python executable instead.

Basic usage

deliberaide-cli --help
deliberaide-cli routes list
deliberaide-cli auth login
deliberaide-cli users get-current-user-info
deliberaide-cli context set org_id 11111111-1111-1111-1111-111111111111
deliberaide-cli projects create-project --name "Pilot workspace"

Sign in from the browser

By default, auth login starts a CLI approval session, opens your browser, and waits for approval:

deliberaide-cli --base-url http://127.0.0.1:8000 auth login

If the browser does not open automatically, copy the URL printed in the terminal into any browser on the same machine. After you sign in and approve the request, the CLI saves the returned cookies in your active profile.

You can still fall back to direct credentials when needed:

deliberaide-cli --base-url http://127.0.0.1:8000 auth login --email you@example.com --password secret

JSON request bodies

Use direct field flags for simple object bodies:

deliberaide-cli projects create-project --name "Pilot workspace" --description "CLI-created"

Use raw JSON for richer payloads:

deliberaide-cli projects create-project --body '{"name":"Pilot workspace","target_language":"en"}'

Or load JSON from a file:

deliberaide-cli projects create-project --body-file .\payload.json

Co-Pilot turns

The web app talks to the Co-Pilot over the WebSocket /api/v1/ws/copilot, not over the blocking POST /copilot/conversations/{id}/messages. copilot chat does the same: it sends one copilot_message frame carrying the web client's runtime_context (selected workflow, discussion scope), streams the server's progress frames, keeps the connection alive with pings, and returns the final message when the turn ends. Turns can take several minutes.

# new conversation on a discussion; streams frames, prints the final answer
deliberaide-cli copilot chat --discussion-id <uuid> --x-organisation-id <uuid> --text "..."

# continue an existing conversation; scope and workflow are restored from it
deliberaide-cli --json copilot chat --conversation-id <uuid> --text "..." --no-stream

# show the frame that would be sent, without sending it
deliberaide-cli copilot chat --conversation-id <uuid> --text "..." --dry-run

# a turn started with the blocking POST timed out client-side: poll for the answer
deliberaide-cli copilot wait --conversation-id <uuid>

Object-typed body fields such as --runtime-context accept JSON text or @file.

Multipart uploads

deliberaide-cli upload upload-audio --file .\meeting.mp3 --discussion-id 22222222-2222-2222-2222-222222222222 --config '{"language":"en"}'
deliberaide-cli upload upload-bulk --files .\a.wav --files .\b.wav --session-id 33333333-3333-3333-3333-333333333333

Binary responses

deliberaide-cli qr get-session-qr-codes-zip --session-id 44444444-4444-4444-4444-444444444444 --download .\session-qr.zip

Profiles and saved defaults

deliberaide-cli profile show
deliberaide-cli profile set-base-url http://127.0.0.1:8000
deliberaide-cli context set discussion_id 55555555-5555-5555-5555-555555555555
deliberaide-cli context show
deliberaide-cli context undo

Interactive shell

Run with no subcommand to enter the shell:

deliberaide-cli

Inside the shell, enter the same commands you would run normally, for example:

routes list
auth login
users get-current-user-info
exit

Tests

python -m pytest .\agent-harness\deliberaide_cli\tests -v

Download files

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

Source Distribution

deliberaide_cli-0.1.5.tar.gz (95.9 kB view details)

Uploaded Source

Built Distribution

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

deliberaide_cli-0.1.5-py3-none-any.whl (103.0 kB view details)

Uploaded Python 3

File details

Details for the file deliberaide_cli-0.1.5.tar.gz.

File metadata

  • Download URL: deliberaide_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 95.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.9

File hashes

Hashes for deliberaide_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 d64f0640305bf3544c9b0bbe4ff1d84c8ea2e4331511e8da661a1e5a7c5163ac
MD5 fe681bb3a556dae5edcd86b992a6ace1
BLAKE2b-256 954d1fc5f2439028c006aca4563d0eba764741553b80c52b504ee2f2ce3026f9

See more details on using hashes here.

File details

Details for the file deliberaide_cli-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for deliberaide_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9beceb234d85771d2e801f214db0083b0020eaf68cf32764d1c07beb7071ff0a
MD5 19cf73ffeba5eddb6bb3f04cde2c784d
BLAKE2b-256 e36378fbb632662608f0e9f808b4edb52f120a4bfd3c5f0034d1f8253ff8628e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.6

2 files

This release

0.1.5 This release

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

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