Skip to main content

AiChat CLI

A command-line tool for AI Dialogue via the AceDataCloud platform.

Features

  • Chat with AI — Send questions to GPT, DeepSeek, Grok, GLM, and more models
  • Conversation Continuation — Resume conversations using --id
  • Stateful Sessions — Enable multi-turn context with --stateful
  • References — Inject context documents into prompts with --ref
  • Rich Output — Beautiful terminal formatting with --json for scripting
  • Many Models — GPT-5, GPT-4o, o3, o4-mini, DeepSeek, Grok, GLM, and more

Installation

pip install aichat-pro-cli

Quick Start

# Set your API token
export ACEDATACLOUD_API_TOKEN=your_token_here

# Ask a question
aichat chat "What is the capital of France?"

# Use a specific model
aichat chat "Explain quantum computing" -m gpt-4o

# Continue a conversation
aichat chat "Tell me more" --id 64a67fff-61dc-4801-8339-2c69334c61d6

# Stateful conversation (server remembers context)
aichat chat "My name is Alice" --stateful
aichat chat "What is my name?" --id <returned-id> --stateful

# With reference documents
aichat chat "Summarize this" --ref "https://example.com/doc.txt"

# Get JSON output
aichat chat "Hello" --json | jq '.answer'

Commands

Command Description
chat Send a question to an AI model (/aichat/conversations)
models List all available models
config Show current configuration

Chat Options

Option Description
-m, --model Model to use (default: gpt-4o)
--id Conversation ID to continue
--preset Preset model name
--stateful Enable stateful conversation
--ref Reference URL or text (repeatable)
--json Output raw JSON

Configuration

Environment Variable Description Default
ACEDATACLOUD_API_TOKEN API authentication token (required)
ACEDATACLOUD_API_BASE_URL API base URL https://api.acedata.cloud
AICHAT_REQUEST_TIMEOUT Request timeout in seconds 30

You can also use a .env file or pass --token directly.

Docker

docker compose run aichat-cli chat "Hello!"

Development

# Install with dev dependencies
pip install -e ".[all]"

# Run tests
pytest

# Run linter
ruff check .
ruff format --check .

License

MIT License - see LICENSE for details.

Links

Download files

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

Source Distribution

aichat_pro_cli-2026.8.24.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

aichat_pro_cli-2026.8.24.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file aichat_pro_cli-2026.8.24.0.tar.gz.

File metadata

  • Download URL: aichat_pro_cli-2026.8.24.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for aichat_pro_cli-2026.8.24.0.tar.gz
Algorithm Hash digest
SHA256 3d4894a220f830c53c41b4a104d1e6e990830ebf42fd9fc12f3c1508167e95bb
MD5 d4892588367d9c5d08369ddd47a7a56b
BLAKE2b-256 4edd496e9f89ec71e151a5b6b248e2c647911cc6815e2b8fa91306c567940247

See more details on using hashes here.

File details

Details for the file aichat_pro_cli-2026.8.24.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aichat_pro_cli-2026.8.24.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03c0d9fdc8d3172b4ed734731a29f63948fdae2ba83ccd287819781a0972d5fa
MD5 9ffb64ec2a683aabaa7dd7d1e4952a7a
BLAKE2b-256 9b3201f89c7a90edfce5deea32770ff61a6cb0f7445856c60b4773a5e125134e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2026.8.24.0 This release

2 files

2026.8.18.1

2 files

2026.8.18.0

2 files

2026.8.17.0

2 files

2026.8.16.0

2 files

2026.8.11.0

2 files

Supported by

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