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

AgentScope is a Python framework for developers building AI agent applications on their own servers. It includes an SDK, a FastAPI backend and a web UI for applications with multiple users and separate sessions.
- Agent execution Build agents that reason over tool results, return structured output, pause and resume, and execute tools sequentially or concurrently according to their properties.
- Coding and external tools Give agents shell, file editing and search tools, or connect Python functions, MCP servers and skills.
- Permissions and isolation Combine tool-specific review and human approval with sandboxed execution, including local filesystem, Docker, E2B and Kubernetes environments at user, agent or session level.
- Context and memory Compress conversations, move large tool results out of context and retrieve relevant information, with support for Mem0, ReMe and vector databases.
- Application interface Stream reasoning, tool calls and text, image or audio content to the frontend, with support for distributed deployment.
AgentScope is open source under Apache 2.0 and requires Python 3.11 or higher. Ollama supports local model use; OpenAI, Anthropic, Gemini and DeepSeek are among its cloud provider integrations. Self-hosting the application doesn't make cloud model calls local: requests go to the selected provider. Agent and tool middleware lets developers adjust runtime behavior.