
agentscope-java
Java framework for distributed, long-running agents with sandboxes and memory
- Pricing
- Open source
- Platforms
- self-hosted, API
- GitHub stars
- 6.4K
- Last commit
- today
- Language
- Java
- License
- Apache-2.0
About agentscope-java
agentscope-java is an open-source agent framework for multi-agent frameworks. It is available on self-hosted and API.
Version 2.0 centres on HarnessAgent, which packages a workspace, memory, sandbox, sub-agents, skills and Plan Mode around a standard ReAct loop without replacing it. The workspace (AGENTS.md, MEMORY.md, skills and sub-agents) is re-injected every turn so identity persists, and context is kept bounded through compaction and tool-result offloading.
Runs can be resumed with the same sessionId across processes, and sandboxes can snapshot. Execution is exposed as typed events (model calls, text deltas, tool calls, confirmations) and human-in-the-loop approvals are first-class. The code example selects a model such as dashscope:qwen-max and a Docker filesystem for isolation.
It is from the AgentScope team under Alibaba Cloud and is Apache-2.0 licensed.
What it does
- HarnessAgent
- Adds workspace, memory, sandbox and skills around the reasoning loop.
- Resumable sessions
- Same sessionId resumes across processes.
- Context management
- Auto-compaction and large tool-result offloading.
- Typed event streaming
- streamEvents emits model and tool steps.
- Sandboxed execution
- Local, Docker or remote filesystem swap in one line.
- Human-in-the-loop
- Approvals and confirmations are built in.
Good for
- Building Java agents that survive restarts
- Running agent code in a Docker sandbox
- Streaming agent steps to a frontend
- Composing sub-agents and skills declaratively
A2A skills
agentscope
Use when building Java/Spring Boot agents with reasoning, tool
Agent card: https://java.agentscope.io/.well-known/agent-card.json
Pricing
Open source
Free, Apache-2.0
Prices change. Check java.agentscope.io before you buy.
agentscope-java FAQ
Which language?
Java.
Which models can it use?
The example uses DashScope's qwen-max, resolved through a model registry.
Licence?
Apache-2.0.
Is agentscope-java free?
Yes. agentscope-java is open source, so you can use and self-host it for free.
What are the best alternatives to agentscope-java?
The closest alternatives to agentscope-java are hermes-agent, deepseek-harness, langchain, gemini-cli and deer-flow.
Alternatives to agentscope-java

hermes-agent
AgentOpen-source self-improving agent with memory, scheduling and many chat gateways
- Freemium
- Open-source agent
- 264K GitHub stars
- AI models and LLM tooling

deepseek-harness
AgentOpen-source agent harness from DeepSeek, built on a plugin architecture
- Open source
- Open-source agent
- 282K GitHub stars
- Multi-agent frameworks

langchain
AgentPython library for building agents from a model, tools, prompt and middleware
- Open source
- Agent framework
- 150K GitHub stars
- AI models and LLM tooling

gemini-cli
AgentOpen-source terminal agent for Gemini Code Assist workflows on Google Cloud
- Open source
- Open-source agent
- 109K GitHub stars
- AI models and LLM tooling

deer-flow
AgentOpen-source super agent harness that researches, codes and creates with sandboxes
- Open source
- Open-source agent
- 85.4K GitHub stars
- AI models and LLM tooling

ruflo
AgentAgent meta-harness that adds swarms, memory and MCP tools to Claude Code and Codex
- Open source
- Agent framework
- 81.9K GitHub stars
- Knowledge and memory