AgentOS is a powerful platform for building, executing, and managing AI agents. It provides a comprehensive environment with a SOP (Standard Operating Procedure) engine, sandboxed code execution, browser automation, and a marketplace for sharing agent capabilities.
- Agent Workbench: A visual environment to design, test, and refine your AI agents.
- SOP Engine: Define complex workflows using Standard Operating Procedures. Supports various node types including:
- Interaction: Chat with users or other agents.
- Reasoning: LLM-based decision making.
- Action: Execute specific tasks or tools.
- Human: Request human input or approval.
- Sub-SOP: Nest workflows for modularity.
- Sandboxed Execution: Securely run Python code generated by agents in an isolated environment.
- Browser Automation: Integrated headless browser support allows agents to navigate the web, interact with pages, and extract information.
- Marketplace: Discover, share, and deploy agents and tools.
- File System: Built-in file management for agents to read/write files during execution.
- Dashboard: Monitor agent performance, manage files, and view execution history.
- Framework: Next.js (App Router)
- Language: TypeScript
- Database: PostgreSQL (via Prisma)
- Authentication: NextAuth.js
- AI Integration: Vercel AI SDK, OpenAI
- UI Components: Tailwind CSS, Radix UI, Lucide Icons
- Workflow Visualization: React Flow
- Code Editor: Monaco Editor
- Node.js (v18+)
- Docker (for sandboxed environments, if applicable)
- PostgreSQL database
-
Clone the repository:
git clone https://github.com/yourusername/agentos.git cd agentos -
Install dependencies:
npm install
-
Environment Setup:
Copy the example environment file and configure your credentials:
cp .env.example .env
Update
.envwith your database URL, OpenAI API key, and NextAuth secret. -
Database Migration:
npx prisma migrate dev
-
Run Development Server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
src/app: Application routes and pages (App Router).agent/: Agent interaction and details.dashboard/: User dashboard (files, profile, etc.).marketplace/: Agent/Tool marketplace.workbench/: Agent creation and testing workbench.api/: Backend API routes (auth, execution, file system).
src/lib: Core libraries and utilities.ai/: AI-related logic (tool calling, SOP integration).sop/: Standard Operating Procedure engine implementation.execution/: Sandboxed code execution logic.infra/: Infrastructure helpers (Prisma, Auth).
src/components: Reusable UI components.doc/: Documentation and architectural plans.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.