https://github.com/simonpierreboucher02/o-series-cli-agent
A professional, feature-rich command-line interface for OpenAI's reasoning models
https://github.com/simonpierreboucher02/o-series-cli-agent
ai-agent cli o1 o3 o3-mini o4-mini openai
Last synced: about 1 month ago
JSON representation
A professional, feature-rich command-line interface for OpenAI's reasoning models
- Host: GitHub
- URL: https://github.com/simonpierreboucher02/o-series-cli-agent
- Owner: simonpierreboucher02
- Created: 2025-08-29T06:33:03.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-08-29T06:57:51.000Z (about 1 month ago)
- Last Synced: 2025-08-29T10:38:12.473Z (about 1 month ago)
- Topics: ai-agent, cli, o1, o3, o3-mini, o4-mini, openai
- Language: Python
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π§ Unified OpenAI O-Series CLI Agent
**π¨βπ» Author: Simon-Pierre Boucher**



**A professional, feature-rich CLI agent for OpenAIβs O-Series reasoning models**
*Supports O1, O3, O3-mini, and O4-mini with presets, advanced config, and modern CLI*[β¨ Features](#-features) β’ [βοΈ Installation](#-installation) β’ [π Quick Start](#-quick-start) β’ [π Commands](#-commands-reference) β’ [π File Inclusion](#-file-inclusion) β’ [π¨ Presets](#-configuration-presets) β’ [π Model Specs](#-model-specs) β’ [ποΈ Architecture](#-project-structure) β’ [π Security](#-security-features) β’ [π Troubleshooting](#-troubleshooting) β’ [π License](#-license) β’ [π€ Contributing](#-contributing)
---
## β¨ Features
- πΉ **Multi-Model Support**: O1, O3, O3-mini, O4-mini
- π¨ **Beautiful CLI**: Colors, emojis, responsive design
- β‘ **Real-time streaming** with progress indicators
- π **File Inclusion**: `{filename}` syntax
- π **Rich statistics & analytics**
- π― **Presets**: Creative, Balanced, Focused, Fast
- βοΈ **Advanced config** with fine-grained parameters
- π€ **Multi-format Export**: JSON, TXT, Markdown, HTML, CSV, XML
- π‘οΈ **Secure key management & error handling**---
## βοΈ Installation
Clone the repository:
```bash
git clone https://github.com/simonpierreboucher02/o-series-cli-agent.git
cd o-series-cli-agent
```Create and activate a virtual environment (recommended):
```bash
python -m venv venv
source venv/bin/activate
```Install dependencies:
```bash
pip install -r requirements.txt
```Set your OpenAI API key:
```bash
export OPENAI_API_KEY=your_api_key_here
```---
## π Quick Start
### Start chat with O1 model
```bash
python main.py --agent-id my-agent --model o1
```### Creative writing with O3-mini
```bash
python main.py --agent-id writer --model o3-mini --preset creative
```### Fast responses with O4-mini
```bash
python main.py --agent-id quick --model o4-mini --preset fast
```### List all models and agents
```bash
python main.py --models
python main.py --list
```---
## π Commands Reference
| Command | Description |
|---------|-------------|
| `/help` | Show all commands |
| `/history [n]` | Show last n messages |
| `/search ` | Search history |
| `/stats` | Show stats |
| `/config` | Show current config |
| `/config edit` | Interactive config |
| `/preset [name]` | Show/apply preset |
| `/files` | List files |
| `/export ` | Export (json, txt, md, html, csv, xml) |
| `/switch ` | Switch model |
| `/quit` | Exit chat |---
## π File Inclusion
```
Analyze code: {script.py}
Review config: {config.yaml}
```Supported types: Python, JS, TS, Java, C/C++, Go, Rust, HTML, CSS, JSON, YAML, Markdown, etc.
---
## π¨ Configuration Presets
- **Creative** π¨ β High creativity, long reasoning
- **Balanced** βοΈ β Default for most tasks
- **Focused** π― β Analytical, technical
- **Fast** β‘ β Quick responses, minimal reasoning---
## π Model Specs
| Model | Timeout (Low/Med/High) | Context | Best Use Case |
|-------|------------------------|---------|---------------|
| O1 | 3m / 8m / 15m | 128K | Complex reasoning |
| O3 | 4m / 10m / 20m | 128K | Advanced tasks |
| O3-mini | 2m / 5m / 10m | 128K | Balanced performance |
| O4-mini | 1.5m / 4m / 8m | 128K | Fast/simple tasks |---
## ποΈ Project Structure
```
o-series-cli-agent/
βββ main.py
βββ agent.py
βββ config.py
βββ export.py
βββ utils.py
βββ requirements.txt
βββ agents/
βββ {agent-id}/
βββ history.json
βββ config.yaml
βββ secrets.json
βββ backups/
βββ exports/
βββ logs/
βββ uploads/
```---
## π Security Features
- π Encrypted API key storage
- π« Path traversal protection
- β Input validation
- π Error handling & retries
- π Audit logging---
## π Troubleshooting
- β Import errors β `pip install -r requirements.txt`
- π API key issues β `export OPENAI_API_KEY=...`
- β±οΈ Timeout issues β Adjust reasoning effort
- π Permission errors β Ensure directory access---
## π License
MIT License β professional & educational use.
---
## π€ Contributing
Contributions welcome!
---
**2025-08-29**
*UniversitΓ© Laval*