@oflow-ai/oflow-cli
v0.2.8
Published
oFlow CLI - AI-powered terminal assistant for developers
Maintainers
Readme
oFlow CLI
AI-powered CLI assistant for developers. Supports multiple AI providers including OpenAI and Chinese open-source models.
Installation
Mac/Linux/Ubuntu
npm i -g @oflow-ai/oflow-cliWindows
- Restart your terminal (CMD or PowerShell)
- Run:
npm install -g @oflow-ai/oflow-cliQuick Start
# Start oFlow CLI
oflow
# Configure authentication
oflow auth
# List available models
oflow modelsSupported AI Providers
OpenAI
- gpt-4o
- gpt-4o-mini
- gpt-4-turbo
- o1-preview
- o1-mini
Chinese Open-Source Models
| Provider | Models | Features | |----------|--------|----------| | DeepSeek | deepseek-chat, deepseek-reasoner | Reasoning with thinking process | | Qwen (通义千问) | qwen-turbo/plus/max/long | Chinese optimized | | GLM (智谱) | glm-5, glm-4.7, glm-4.6, glm-4.5 | Coding/Agent SOTA | | Baichuan (百川) | Baichuan4, Baichuan3-Turbo | Chinese optimized | | Yi (零一万物) | yi-lightning/large/medium | Cost-effective | | Moonshot (月之暗面) | moonshot-v1-8k/32k/128k | Long context | | SiliconFlow | Multiple open-source models | One-stop API |
CLI Options
oflow [options] [command] [prompt]
Options:
-V, --version output the version number
-m, --model <model> Specify the AI model to use
-d, --directory <dir> Working directory
--yolo Run in yolo mode (auto-approve all operations)
--thinking Show AI thinking/reasoning process
--no-thinking Hide AI thinking/reasoning process
-h, --help display help for command
Commands:
auth [options] Configure authentication
config [options] View or edit configuration
models List available AI modelsSlash Commands
Inside the interactive CLI:
| Command | Description |
|---------|-------------|
| /help | Show help message |
| /exit | Exit CLI |
| /clear | Clear conversation history |
| /init | Analyze current project |
| /model [name] | Show or set current model |
| /config | Show configuration |
| /thinking | Toggle thinking process display |
| /tools | List available tools |
| /agents | List available sub-agents |
| /history | Show conversation history |
| /commit | Generate commit message |
| /review | Review recent code changes |
Features
- Multi-provider support: OpenAI, DeepSeek, Qwen, GLM, and more
- Tool calling: File operations, shell commands, web search
- Thinking process: View AI reasoning for supported models (DeepSeek Reasoner)
- Sub-agents: Specialized agents for different tasks
- MCP integration: Extend with Model Context Protocol servers
- Skill system: Installable skill packages
- Sandbox mode: Isolated execution with Docker/Podman
Configuration
Configuration is stored in:
- macOS/Linux:
~/.config/oflow-nodejs/config.json - Windows:
%APPDATA%\oflow-nodejs\config.json
Requirements
- Node.js 18.0.0 or higher
- npm 9.0.0 or higher
License
MIT
