Get Orion running in 5 minutes.
- Python 3.10 or higher
- Git (for workspace safety features)
- An LLM API key (OpenAI, Anthropic, or use free Ollama)
pip install orion-agentpip install orion-agent[all]git clone https://github.com/phoenixlink-cloud/orion-agent.git
cd orion-agent
pip install -e ".[dev]"export OPENAI_API_KEY="sk-your-key-here"export ANTHROPIC_API_KEY="sk-ant-your-key-here"# Install Ollama from https://ollama.ai
ollama pull llama3orionYou should see:
Orion Agent v7.1.0
Governed AI Coding Assistant
Type /help for commands
Type /quit to exit
>
Tell Orion which project to work on:
> /workspace /path/to/your/project
Workspace set: /path/to/your/project
Orion has three governance modes:
| Mode | Can Read | Can Edit | Can Run Commands |
|---|---|---|---|
safe |
Yes | No | No |
pro |
Yes | Yes (with approval) | No |
project |
Yes | Yes | Yes (allowlisted) |
Start with pro mode:
> /mode pro
Mode set: pro
> What does the main function in app.py do?
Orion will analyze your code and explain it.
> Add input validation to the login function
Orion will:
- Analyze the current code
- Propose specific changes
- Show you a diff
- Wait for your approval
Apply these changes? [y/n/e(dit)]: y
Changes applied to src/auth/login.py
Type /help to see all commands:
> /help
Available Commands:
/workspace <path> Set project directory
/mode <mode> Set governance mode (safe|pro|project)
/settings Manage configuration
/doctor Run diagnostics
/memory View memory status
/map Show repository structure
/undo Revert last change
/help Show this help
/quit Exit Orion
- User Guide -- Complete usage documentation
- CLI Reference -- All commands explained
- AEGIS -- Understand the governance system
- Configuration -- Advanced configuration options
Set your API key as an environment variable:
export OPENAI_API_KEY="sk-your-key"Or configure it in Orion:
> /settings key openai sk-your-key
You must set a workspace before Orion can read or modify files:
> /workspace /path/to/project
Switch to a mode that allows the operation:
> /mode pro # For file editing
> /mode project # For command execution
See Troubleshooting for common problems and solutions.
Next: User Guide | CLI Reference