Skip to main content

Command-line interface for the Dialectus AI debate system

Project description

Dialectus CLI

Command-line interface for the Dialectus AI debate system. Run AI debates locally with Ollama or cloud models via OpenRouter.

Installation

pip install dialectus-cli

From Source

git clone https://github.com/Dialectus-AI/dialectus-cli
cd dialectus-cli
pip install -e ".[dev]"

Requirements

  • Python 3.13+
  • Ollama (if using local models): Running at http://localhost:11434
  • OpenRouter API key (if using cloud models): Set via environment variable

Environment Variables

# Linux/macOS
export OPENROUTER_API_KEY="your-key-here"

# Windows PowerShell
$env:OPENROUTER_API_KEY="your-key-here"

# Windows CMD
set OPENROUTER_API_KEY=your-key-here

Quick Start

After installation, the dialectus command is available:

# Copy example config
cp debate_config.example.json debate_config.json

# Edit with your preferred models and API keys
nano debate_config.json  # or your favorite editor

# Run a debate
dialectus debate

Configuration

Edit debate_config.json to configure:

  • Models: Debate participants (Ollama or OpenRouter)
  • Judging: AI judge models and evaluation criteria
  • System: Ollama/OpenRouter settings

Commands

All commands work identically across platforms:

Start a Debate

dialectus debate
dialectus debate --topic "Should AI be regulated?"
dialectus debate --format oxford
dialectus debate --interactive

List Available Models

dialectus list-models

View Saved Transcripts

dialectus transcripts
dialectus transcripts --limit 50

Database

Transcripts are saved to SQLite database at ~/.dialectus/debates.db

Architecture

CLI → DebateRunner → DebateEngine → Rich Console
           ↓
    SQLite Database
  • No API layer - Imports engine directly
  • Local-first - Runs completely offline with Ollama
  • SQLite storage - Simple, portable database

Development

Contributing

# Clone and install in editable mode
git clone https://github.com/Dialectus-AI/dialectus-cli
cd dialectus-cli
pip install -e ".[dev]"

# Type checking
pyright dialectus/

# Build package
python -m build

License

MIT (open source)

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

dialectus_cli-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

dialectus_cli-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dialectus_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dialectus_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f7299a91562ec0c09931067f9af9406f8ec17b18193c4193c0438b87953613bb
MD5 9a3d211d372d8b07580667bd4b705717
BLAKE2b-256 3346ab0f869fa7f06f5efadae2b9612cd0a95aed9225668f3a79a9ce4d18f11d

See more details on using hashes here.

Provenance

The following attestation bundles were made for dialectus_cli-0.1.0.tar.gz:

Publisher: publish.yml on Dialectus-AI/dialectus-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: dialectus_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dialectus_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 885f4c2da583c55952bd8bf40cced8d822b64cf840db0c75a147b1fa93d0de33
MD5 6769df6ea9fd1042413b66a42b02728c
BLAKE2b-256 859c53f2e92c3ebb4a21db9316fd1c271a6afac8570029a04274965aed11bb63

See more details on using hashes here.

Provenance

The following attestation bundles were made for dialectus_cli-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Dialectus-AI/dialectus-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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