openAgent
gitlabThe open source UNIVERSAL agent.
clone
https://gitlab.com/bitzzdev/openAgent.gitAIagentautomationopen-sourceuniversal-agent
<p align="center"><h1 align="center">OpenAgent</h1><p align="center"><strong>The Universal, Local-First AI Agent Platform</strong></p></p><p align="center"><a href="#features">Features</a> •<a href="#quickstart">Quickstart</a> •<a href="#cli-usage">CLI Usage</a> •<a href="#dynamic-tools">Dynamic Tools</a> •<a href="#credential-manager">Credentials</a> •<a href="#local-web-mode">Web Mode</a> •<a href="#architecture">Architecture</a> •<a href="#license">License</a></p>---## Overview**OpenAgent** is a universal, local-first AI agent platform designed to run autonomously on your machine. Beyond software development, OpenAgent is capable of reasoning about arbitrary workflows—integrating with APIs, cloud services, databases, research pipelines, and local environments through a dynamic, persistent tool architecture.OpenAgent features a shared core runtime accessible via:* **Interactive Terminal TUI** (`openagent`)* **Local Web UI** (`openagent web`)* **Headless & Scripting CLI** (`openagent run "..."`)---## Architecture```textOpenAgent│┌───────┴────────┐│ Agent Runtime │└───────┬────────┘│┌────────────────────┼────────────────────┐│ │ │▼ ▼ ▼TUI Web UI CLI│ │ │└────────────────────┼────────────────────┘│▼Agent Engine│┌─────────────────┼─────────────────┐│ │ │▼ ▼ ▼Tool Registry Credential Broker Permission System│┌────┴────┐▼ ▼Built-in GeneratedTools Tools│▼Sandbox```---## Key Features### 1. Dynamic Tool Creation & Persistent RegistryWhen OpenAgent encounters a task requiring an external capability it does not possess, it autonomously creates, validates, sandbox-tests, and registers a persistent tool.* **Built-in tools**: `read`, `write`, `edit`, `glob`, `grep`, `bash`, `webfetch`, `websearch`, `question`, `todowrite`, `skill`, `tool_generate`.* **Agent-generated tools**: Dynamic tools saved across sessions in `~/.openagent/tools/`.* **Tool Management**: Inspect, test, enable, or remove tools via `openagent tools` or `/tools`.### 2. Credential Broker & Strict Secret Isolation* **Zero Secret Leakage**: The LLM model context never receives the raw credential vault.* **Scoped Injection**: Generated tools only receive credentials they explicitly declare and have been authorized for.* **Automatic Redaction**: API keys, tokens, and passwords are automatically masked with `[REDACTED]` across logs, session history, TUI/Web output, and error traces.* **Management**: View and configure credentials via `openagent credentials` or `/credentials` (without exposing secret values).### 3. Multi-Provider AI SupportConnect to leading AI providers or run offline:* Anthropic (Claude 3.7 Sonnet / Opus / Haiku)* OpenAI (GPT-4o, o1, o3-mini)* Google Gemini (Gemini 2.0 Flash / Pro)* Groq, Mistral, xAI, Amazon Bedrock, OpenRouter, Ollama & local models.### 4. Fine-Grained Permission SystemControl agent autonomy with clear permission tiers (`allow`, `ask`, `deny`):* `filesystem.read` / `filesystem.write`* `shell.execute` / `process.spawn`* `network.request`* `credential.read`* `tool.generate`---## Quickstart### Running the Terminal TUI```bashopenagent```### Running Local Web Mode```bashopenagent web```Starts the local OpenAgent server at `http://localhost:4096` and opens the browser UI.### Running Headless Tasks```bashopenagent run "Summarize recent Git commits and check for any outdated dependencies"```---## CLI Usage```bash# General help and commandsopenagent --help# Dynamic Tool Managementopenagent tools list # List built-in and generated toolsopenagent tools inspect <tool_name> # View tool schema, source, and credentialsopenagent tools remove <tool_name> # Delete a generated toolopenagent tools enable <tool_name> # Enable a toolopenagent tools disable <tool_name> # Disable a tool# Credential Managementopenagent credentials list # List configured keys and dependenciesopenagent credentials set <KEY> <VALUE> # Securely store a credentialopenagent credentials remove <KEY> # Remove a credential# Models and Providersopenagent models # List available modelsopenagent providers # Configure AI providers```---## Development & Testing```bash# Install dependenciesbun install# Run the OpenAgent dev CLIbun dev# Run unit and security testsbun test```---## Upstream AttributionOpenAgent builds upon and extends the open-source foundation originally created by [OpenCode](https://github.com/anomalyco/opencode). We are grateful to the original creators and maintainers.## LicenseMIT License. See [LICENSE](./LICENSE) for details.