Sandbox
@the-open-agent/openagent

Self-hosted AI assistant with RAG and agent loops

OpenAgent is a server and web app for running an AI assistant on your own machine or infrastructure. It connects to multiple model providers, builds a document knowledge base, and lets agents use browser, shell, office, and MCP tools while logging each step.

5,612 stars656 forksGoUpdated 7d ago
Who it's for

Builders who want an assistant that can use documents, tools, and workflows from one self-hosted app.

What it delivers

You can run an agent that answers from your own knowledge base and takes actions in the browser, shell, and connected tools.

What it does

Multiple model providers

Switch between OpenAI, Claude, Gemini, Grok, Ollama, Bedrock, and other providers per conversation.

Autonomous agent loops

Let the agent browse pages, search the web, run shell commands, and use office files.

MCP integration

Connect MCP-compatible servers over SSE, Stdio, or StreamableHTTP and expose their tools to the agent.

RAG knowledge base

Upload documents, embed them, and retrieve relevant passages before responses.

Workflow automation

Use the BPMN-style workflow builder for multi-step, conditional, parallel, and scheduled jobs.

Audit and usage views

Track tool calls, logs, token use, cost, and activity across users and workspaces.

How to get it

  1. 1macOS / Linux / WSL
    curl -fsSL https://raw.githubusercontent.com/the-open-agent/openagent/master/scripts/install.sh | bash
  2. 2Windows (PowerShell)
    irm https://raw.githubusercontent.com/the-open-agent/openagent/master/scripts/install.ps1 | iex
  3. 3Frontend: Node.js 20+ and Yarn 1.x
    # Backend
    go build
    
    # Frontend
    cd web && yarn install && yarn start
  4. 4Docker
    docker-compose up

README

OpenAgent

Next-generation personal AI assistant powered by LLM, RAG and agent loops — ships as a single binary, no installation needed

Supporting computer-use, browser-use and coding agent


Build Release Docker Pulls Go Report License Discord


Live Demo · Playground · Docs · Discord


English | 中文


What is OpenAgent?

OpenAgent is an open-source personal AI assistant that brings together powerful LLMs, your own knowledge base, and autonomous agent loops — all in one self-hostable platform. Connect any model provider, build a RAG knowledge base from your documents, and let agents browse the web, run code, and call any MCP-compatible tool on your behalf.


Usage AnalyticsActivity Monitoring
Usage AnalyticsActivity Monitoring
Tool ManagementDetailed Logs
Tool ManagementDetailed Logs


Sponsors

APIMart Thanks to APIMart for sponsoring this project! APIMart is a low-cost API platform for AI image & video generation — GPT-Image-2 from $0.006/image, 160+ images per dollar. One async API covers both image and video: submit a task, get an ID, fetch results via polling or callback. Batch tens of thousands of images without timeouts, switch models without changing code. Pay-as-you-go with no monthly fee — sign up here to get started.

Quick Start

Pre-built binaries for Linux, macOS, and Windows (x86_64 / arm64). The installer downloads the latest release and starts OpenAgent on port 14000.

macOS / Linux / WSL

curl -fsSL https://raw.githubusercontent.com/the-open-agent/openagent/master/scripts/install.sh | bash

Windows (PowerShell)

irm https://raw.githubusercontent.com/the-open-agent/openagent/master/scripts/install.ps1 | iex

Windows runs natively — no WSL, no Docker required.

Open http://localhost:14000 and you're in.

Optional env vars: OPENAGENT_VERSION, INSTALL_DIR, BIN_DIR

Build from source

Prerequisites:

# Backend
go build

# Frontend
cd web && yarn install && yarn start

Docker

docker-compose up

Open http://localhost:14000 once the containers are running.


Features

🤖 30+ Model Providers

Connect every major LLM provider and switch between them per conversation — no code changes required.

OpenAI · Azure OpenAI · Anthropic Claude · Google Gemini · DeepSeek · Mistral · Grok · Qwen · Doubao · Moonshot · ChatGLM · Baichuan · Ernie · iFlytek · HuggingFace · Cohere · Amazon Bedrock · OpenRouter · Ollama · APIMart · and more


🔄 Autonomous Agent Loops

CapabilityDescription
Browser-UseDrive a real browser — navigate, click, fill forms, scrape, and screenshot pages
Web Search & FetchSearch the web and pull live page content into the agent's context
Shell ExecutionRun shell commands and scripts directly from the agent loop
Office AutomationRead and write Word, Excel, and PowerPoint files
MCP IntegrationPlug in any MCP-compatible server (SSE / Stdio / StreamableHTTP) and expose its tools to the agent
Transparent Tool CallsSee every tool invocation, its arguments, and its return value — step by step

📚 RAG & Knowledge Base

CapabilityDescription
Document IngestionUpload PDFs, Word docs, Excel sheets, and more — chunked, embedded, and indexed automatically
Semantic SearchRetrieves the most relevant passages from your knowledge base before each LLM response
Pluggable EmbeddingsOpenAI, Azure, Gemini, Qwen, Cohere, Jina, HuggingFace, local models, and more
Isolated StoresOrganise knowledge into separate stores; assign them per chat or per application

⚡ Workflow Automation

CapabilityDescription
Visual Workflow BuilderCompose multi-step pipelines with a BPMN-style drag-and-drop editor
Conditional & Parallel ExecutionBranch on gateway conditions; run independent tasks concurrently
Task SchedulingTrigger workflows or agent jobs on a recurring schedule
Usage AnalyticsTrack token consumption and cost per provider, model, and user

🏗️ Platform Features

CapabilityDescription
Single BinaryOne executable file — no installer, no runtime dependencies. Download and run instantly on any supported platform
Native Windows SupportRuns directly on Windows — no WSL, no Docker, no Linux subsystem required
Single Sign-OnOIDC / OAuth2 / LDAP / SAML via the built-in auth layer
Multi-tenancyIsolated workspaces per user or organisation
REST API + Swagger UIEvery feature is accessible programmatically
Audit LogsFull activity history for every action
File & Media ManagementBuilt-in storage for files, images, and video content

📊 Admin Dashboard

PanelWhat you get
Usage StatisticsToken & cost metrics per app, user, and model — with interactive charts and heatmaps
Activity MonitoringReal-time system operations with success/error rates, operation-type breakdowns, and trends
Tool ManagementCentralised CRUD for all agent tools: browser, shell, office, web search, and more
Request LogsFull request/response payloads with JSON formatting, filtering, and debugging

Online Demo

EnvironmentURLNotes
Live Previewhttps://demo.openagentai.orgRead-only tour — no account needed
Playgroundhttps://try.openagentai.orgMake changes freely — data resets every 5 minutes

Documentation

Full docs at https://www.openagentai.org


Community

  • Discorddiscord.gg/5rPsrAzK7S · chat with maintainers and other users
  • Issues & PRs — welcome! Please open an issue first to discuss larger changes

License

Apache 2.0

Files in the repo

Repository payload62 top-level entries
  • .github
  • assets
  • audio
  • audit
  • auth
  • authz
  • bpmn
  • carrier
  • chain
  • conf
  • contest
  • controllers
  • data
  • deploy
  • embedding
  • embedsupport
  • guard
  • i18n
  • internal
  • mcp
  • migration
  • model
  • object
  • pipe
  • proxy
  • routers
  • scripts
  • shellcmd
  • skillmd
  • skills
  • split
  • storage
  • stt
  • swagger
  • tool
  • tts
  • txt
  • util
  • video
  • web
  • .gitattributes
  • .gitignore
  • .golangci.yml
  • .goreleaser.yaml
  • .releaserc.json
  • build.sh
  • CLAUDE.md
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • docker-compose.ocr.yml
  • docker-compose.yml
  • docker-entrypoint.sh
  • Dockerfile
  • embed.go
  • go.mod
  • go.sum
  • LICENSE
  • main.go
  • README_zh.md
  • README.md
  • riscv64.Dockerfile
  • SECURITY.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More tools

JuliusBrussee/
caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

105k
1 add
MemPalace/
mempalace

The best-benchmarked open-source AI memory system. And it's free.

59k
stablyai/
orca

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

66k

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

132k

Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors

64k
headroomlabs-ai/
headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

71k