Skip to main content

Canonical dev CLI client for ai-agent-gateway

Project description

ai-agent-gateway-cli

Canonical Python dev CLI for the ai-agent-gateway HTTP/SSE protocol.

Usage

python -m agent_gateway_cli login
python -m agent_gateway_cli chat "hello"
python -m agent_gateway_cli --config-namespace cashnerd login
python -m agent_gateway_cli --config-namespace cashnerd chat --session default "hello"

The default config namespace is agent-gateway, which writes:

  • ~/.cache/agent-gateway/cli_config.json
  • ~/.cache/agent-gateway/sessions/<name>.json

--config-namespace cashnerd writes under ~/.cache/cashnerd/ instead.

Contract

The CLI sends context.channel = "cli" on every chat request. When user_id is configured, it is sent as a top-level field on both /api/chat/init and /api/chat. Tool approvals post tool_call_id, nonce, approved, and allow_tool_type.

The default BaseUrlPolicy is intentionally strict: http://127.0.0.1 only, with no path, query, or fragment. Products that need a wider local policy can inject BaseUrlPolicy(allowed_schemes=..., allowed_hostnames=...).

Project details


Download files

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

Source Distribution

ai_agent_gateway_cli-0.1.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

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

ai_agent_gateway_cli-0.1.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file ai_agent_gateway_cli-0.1.0.tar.gz.

File metadata

  • Download URL: ai_agent_gateway_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ai_agent_gateway_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7ce8719e62e1d29df23e192ceb48d6410bf2c9550a2e2dbeb07e856508334ac8
MD5 1348fdb59e3199ca8a2cfc648ec35868
BLAKE2b-256 25d0c9d07eae40e1b6aebb583ce3cefd90ac45b3474e7201c7ec87d8de1e5f81

See more details on using hashes here.

File details

Details for the file ai_agent_gateway_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_agent_gateway_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76bb6ce689df4be112d625ea8cf8af62a54474276efe81cb398f52397a399c7a
MD5 a7907144e2bd7dcc6262e4dfd0dd4bc6
BLAKE2b-256 7d8ce304da6a0278eb62b6a3ce91d51e5f1f05ded8eca7cad6e9071d65a0ee7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page