Favicon of AgentScope

AgentScope

An open source Python AI agent framework with a self-hosted backend, web UI, Ollama support, tool permissions and sandboxed execution.

Screenshot of AgentScope website

AgentScope is an open source Python framework for developers building AI agent applications on their own servers. It combines an agent SDK with a FastAPI backend and web UI, including support for separate users and sessions and distributed deployment. Its Apache 2.0 license allows use and modification.

Agents use ReAct reasoning to choose tools and act on their results. They can return structured output, pause and resume during execution, and run tools sequentially or concurrently according to the tools' properties. Built-in coding tools cover shell commands, file editing and search; agents can also use Python functions, MCP servers and skills.

Tool access has several controls: review for individual tools, human approval and isolated execution. Sandboxes can use a local filesystem, Docker, E2B or Kubernetes, with isolation at the user, agent or session level. Middleware lets developers adjust agent and tool behavior without rewriting the agent itself.

AgentScope supports Ollama for local LLM use, alongside cloud providers including OpenAI, Anthropic, Gemini and DeepSeek. The application backend can be self-hosted; model requests go to the selected local runtime or cloud provider.

For longer tasks, context management compresses conversations, moves bulky tool results out of context and retrieves relevant information. It supports RAG and long-term memory, with Mem0, ReMe and vector database integrations. The web UI receives streamed reasoning, tool calls and text, image and audio content.

Similar to AgentScope