A Python CLI for chat, streaming, and agent workflows from your terminal.
onefirewall-ai connects directly to the OneFirewall AI Gateway or any OpenAI-compatible provider. Use it for interactive REPL sessions, one-shot prompts, piping terminal output, and longer agent-style tasks without leaving your shell.
Launch an interactive terminal REPL with agent mode for file-aware tasks or stay in chat-only mode when you just want answers.
Use --session to persist context across debugging, writing, and long-running terminal workflows.
Send logs, diffs, or command output straight into the CLI for instant summaries, fixes, and explanations.
Connect to OneFirewall AI, OpenAI, Groq, Ollama, Azure OpenAI, Anthropic, and other OpenAI-compatible endpoints.
The login flow now matches the landing page experience: pick OneFirewall AI for the managed gateway, or select Other to connect to any OpenAI-compatible base URL.
For OneFirewall AI, use your gateway URL and API key from the dashboard profile.
For Other, paste any OpenAI-compatible base URL and API key.
Credentials are stored locally in ~/.onefirewall-ai/access.json.
Run the CLI without arguments to enter the interactive REPL. It can handle standard chat as well as agent-style tasks, and you can toggle modes from inside the session.
Use sessions to keep context across multiple commands and longer tasks. This is the same session-memory story highlighted on the landing page.
Send logs, diffs, and command output directly into the CLI, or run a one-shot agent command when you do not need the full REPL.
| Command | Description |
|---|---|
| onefirewall-ai | Start the interactive REPL. |
| onefirewall-ai login | Select a provider and save your credentials. |
| onefirewall-ai "Explain this stack trace" | Run a one-shot prompt directly from your shell. |
| onefirewall-ai agent "Read the README and explain the repo" | Run an agent-style task without entering the REPL first. |
| onefirewall-ai --session my-task "continue" | Resume a named session with prior context. |
| onefirewall-ai sessions | List recent sessions. |
| onefirewall-ai version | Show the installed CLI version. |
Local CLI state is stored under ~/.onefirewall-ai/.
Edit SOUL.md
Edit MEMORY.md