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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7299a91562ec0c09931067f9af9406f8ec17b18193c4193c0438b87953613bb
|
|
| MD5 |
9a3d211d372d8b07580667bd4b705717
|
|
| BLAKE2b-256 |
3346ab0f869fa7f06f5efadae2b9612cd0a95aed9225668f3a79a9ce4d18f11d
|
Provenance
The following attestation bundles were made for dialectus_cli-0.1.0.tar.gz:
Publisher:
publish.yml on Dialectus-AI/dialectus-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dialectus_cli-0.1.0.tar.gz -
Subject digest:
f7299a91562ec0c09931067f9af9406f8ec17b18193c4193c0438b87953613bb - Sigstore transparency entry: 601264260
- Sigstore integration time:
-
Permalink:
Dialectus-AI/dialectus-cli@da717da9b5ebd1567fb5aa5380ab387536e5e0b4 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Dialectus-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@da717da9b5ebd1567fb5aa5380ab387536e5e0b4 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
885f4c2da583c55952bd8bf40cced8d822b64cf840db0c75a147b1fa93d0de33
|
|
| MD5 |
6769df6ea9fd1042413b66a42b02728c
|
|
| BLAKE2b-256 |
859c53f2e92c3ebb4a21db9316fd1c271a6afac8570029a04274965aed11bb63
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dialectus_cli-0.1.0-py3-none-any.whl -
Subject digest:
885f4c2da583c55952bd8bf40cced8d822b64cf840db0c75a147b1fa93d0de33 - Sigstore transparency entry: 601264263
- Sigstore integration time:
-
Permalink:
Dialectus-AI/dialectus-cli@da717da9b5ebd1567fb5aa5380ab387536e5e0b4 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Dialectus-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@da717da9b5ebd1567fb5aa5380ab387536e5e0b4 -
Trigger Event:
push
-
Statement type: