Launch Multi-Agent AI Systems with OxyGent in Just 20 Lines of Code

Learn how to quickly set up OxyGent, a flexible AI agent framework, by installing Python, Node.js, and the MCP tools, configuring environment variables, and using just 20 lines of code to build, debug, and deploy multi‑agent applications with features like RAG, tool integration, and distributed execution.

JD Retail Technology
JD Retail Technology
JD Retail Technology
Launch Multi-Agent AI Systems with OxyGent in Just 20 Lines of Code

OxyGent enables developers to flexibly compose AI agents like building blocks, offering extreme scalability, full‑trace decision making, and top performance on the GAIA Benchmark.

Installation

Required environments:

Python 3.10+ (create a conda environment)

conda create -n oxy_env python==3.10
conda activate oxy_env

OxyGent package pip install oxygent Node.js is needed only when using MCP tools (download from the official site).

Hello World

Create a .env file with your large‑model credentials:

DEFAULT_LLM_API_KEY = "<your_key>"
DEFAULT_LLM_BASE_URL = "<your_url>"
DEFAULT_LLM_MODEL_NAME = "<model_name>"

Run the starter command (see image).

RAG

MoA

Tool Integration

Local MCP

SSE MCP

FunctionHub

All registration methods (FunctionHub, LocalMCP, SSE‑MCP) produce the same runtime effect (see image).

External MCP

Auto Top‑K Tool Retrieval

Block‑Style Multi‑Agent Construction

Hierarchical Agents

Workflow Integration

Reflexion Mechanism

Rapid Deployment

Data Persistence

The framework provides a robust storage mechanism for later SFT or RL training.

Concurrency Limits

Multi‑Environment Configuration

Distributed Execution

Advanced Features

Multimodal support

Weight‑based memory filtering during execution

Retrieval of additional tools

Custom large‑model output parsers

Custom SSE interfaces

Result post‑processing or formatting

Agents invoking multiple tools simultaneously

Restart tasks from intermediate nodes

Plan‑and‑Solve paradigm

Open‑Source Invitation

Join the OxyGent community on GitHub (https://github.com/jd‑opensource/OxyGent) and contribute to the project’s evolution.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

MCPdeploymentRAGmulti-agentOxyGent
JD Retail Technology
Written by

JD Retail Technology

Official platform of JD Retail Technology, delivering insightful R&D news and a deep look into the lives and work of technologists.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.