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)
chat2 Send a conversation request with structured messages and tool results (/aichat2/conversations)
models List all available models
models2 List models available to chat2
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

Release files for aichat-pro-cli 2026.9.4.0

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

Source distribution (sdist)

Source distribution for aichat-pro-cli 2026.9.4.0
File Size Uploaded
aichat_pro_cli-2026.9.4.0.tar.gz 13.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aichat-pro-cli 2026.9.4.0
File Interpreter ABI Platform
aichat_pro_cli-2026.9.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.0 kB

Release files / aichat_pro_cli-2026.9.4.0.tar.gz

Download URL aichat_pro_cli-2026.9.4.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
04207774c1eef7dca9e1f40c75305ff5bd8a6d599774212ebcaaa7848c297f0e
BLAKE2b-256 checksum
How to use checksums
e78fbe6d5d0ce6eb5e4a70964e59385e38cb38ad4bb902ffa031656855a2f4af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / aichat_pro_cli-2026.9.4.0-py3-none-any.whl

Download URL aichat_pro_cli-2026.9.4.0-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c66ce2968169962a21bad0a155b00060537ab0d636defba8d28c62f1777219a
BLAKE2b-256 checksum
How to use checksums
20515e7ce8ba29d5f819ca4a05083f049ec80e2136a78c2372140e6c8c1e9cb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3
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