Installation

AgentScope Java supports multiple LLM providers, RAG backends, and extension features, each requiring different third-party SDKs. If we bundled everything into a single package, your project would be bloated with dependencies you may never use—increasing JAR size, slowing builds, and risking version conflicts.

To balance ease of use and dependency control, we provide two approaches:

  • All-in-one: A single dependency with sensible defaults (DashScope SDK, MCP SDK). Perfect for getting started quickly—add extra dependencies only when needed.

  • Core + extensions: Start with a minimal core, then add only the extension modules you actually use. Ideal for production environments with strict dependency requirements.

Our recommendation: Start with all-in-one for rapid development. Switch to core + extensions when you need to optimize dependency footprint or resolve conflicts.

Future plan: We are working on replacing model provider SDKs with native HTTP implementations. This will significantly reduce external dependencies while maintaining full compatibility with all supported models.

AgentScope Java requires JDK 17 or higher.

Dependency Options

AgentScope Java provides two dependency approaches:

Approach

Use Case

Features

all-in-one

Quick start, most users

Single dependency, includes DashScope SDK by default

core + extensions

Fine-grained dependency control

On-demand imports, reduces unnecessary dependencies

Option 2: Core + Extensions

If you need more fine-grained control over dependencies, you can use agentscope-core with extension modules:

Maven:

<dependency>
    <groupId>io.agentscope</groupId>
    <artifactId>agentscope-core</artifactId>
    <version>1.0.1</version>
</dependency>

Gradle:

implementation 'io.agentscope:agentscope-core:1.0.1'

Extension Modules

Module

Feature

Maven Coordinates

agentscope-extensions-mem0

Mem0 Long-term Memory

io.agentscope:agentscope-extensions-mem0

agentscope-extensions-rag-bailian

Bailian Knowledge Base RAG

io.agentscope:agentscope-extensions-rag-bailian

agentscope-extensions-rag-simple

Qdrant Vector Search RAG

io.agentscope:agentscope-extensions-rag-simple

agentscope-extensions-studio

AgentScope Studio Integration

io.agentscope:agentscope-extensions-studio

Extension modules automatically include their required third-party dependencies, no manual addition needed.

Example: Core + Mem0 Extension

<!-- Add on top of agentscope-core -->
<dependency>
    <groupId>io.agentscope</groupId>
    <artifactId>agentscope-extensions-mem0</artifactId>
    <version>1.0.1</version>
</dependency>