1. Conduid
  2. Data
  3. Aenvironment
MCP server · Data

Aenvironment

Standardized environment infrastructure for Agentic AI development.

Unclaimed Apache-2.0 last commit 6 months ago datamcpreinforement-learningsandboxbenchmarkagentenvironmentrl
80Excellent

Scored 3 hours ago · breakdown

About Aenvironment

Aenvironment is an MCP server published by inclusionAI in the Data category: standardized environment infrastructure for Agentic AI development. It has been installed 0 times through Conduid.

The repository has 254 stars and 28 forks, with the last commit 6 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx aenvironment

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Aenvironment

Powered by Claude · Grounded in docs

I know everything about Aenvironment. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.1.7v0.1.7 · 21 May 2026What's Changed add missing deploy config by @lanmaoxinqing in https://github.com/inclusionAI/AEnvironment/pull/69 Fix mcp client rebuild bug && support labels for experiement && add metrics by @JacksonMei in…
v0.1.6Release v0.1.6 · 16 Mar 2026What's Changed add missing deploy config by @lanmaoxinqing in https://github.com/inclusionAI/AEnvironment/pull/69 Fix mcp client rebuild bug && support labels for experiement && add metrics by @JacksonMei in…
v0.1.5Release v0.1.5 · 27 Feb 2026What's Changed feat: faas engine support for env instance by @lanmaoxinqing in https://github.com/inclusionAI/AEnvironment/pull/59 Create a shared clientset for pod and service by @JacksonMei in…
v0.1.4v0.1.4 · 20 Jan 2026What's Changed update project news by @JacksonMei in https://github.com/inclusionAI/AEnvironment/pull/55 fix service env issue and support specify service-name by @JacksonMei in https://github.com/inclusionAI/AEnvironment/pull/56 change…
v0.1.3v0.1.3 · 19 Jan 2026What's Changed support get/list env instance in aenv cli by @JacksonMei in https://github.com/inclusionAI/AEnvironment/pull/47 [Feature] add --template-id and --callback-url command line arguments for pipeline integration by @lanmaoxinqing…

README


📰 News

  • Deploy Skill (Feb 2026) - 🎉 New Claude Code Skill for automated deployment! Deploy instances and services directly from Claude Code with support for three workflows: local build, existing image, and registered environments. Get Started
  • v0.1.4 (Jan 2026) - AEnv CLI now supports instance and service management! Deploy and manage your agents and applications with simple commands. See CLI Guide for details.

About AEnvironment

AEnvironment is a unified environment platform for the Agentic RL era, built on the core philosophy of "Everything as Environment". By extending standardized MCP protocol, AEnvironment provides out-of-the-box infrastructure for environment providers, algorithm developers, and agent developers, allowing them to focus on agent capabilities rather than the tedious details of environment setup.

Within Ant Group, AEnvironment serves as a key environment layer technology, deeply integrated with the AReaL reinforcement learning framework, supporting large-scale Agentic RL training and agent service deployment.

Core Philosophy: Everything as Environment

AEnvironment abstracts everything as an environment—from simple tool functions to complex multi-agent systems, all accessible through a unified Environment interface. This unified abstraction enables capabilities to be registered, combined, and replaced like building blocks, seamlessly converging Benchmark integration, RL training, and agent deployment on the same infrastructure.

Key Features

🔧 Built-in Benchmarks, Zero-Cost Integration - Ready-to-use benchmark environments with no complex configuration. Currently supported: TAU2-Bench, SWE-Bench, and Terminal-Bench.

🚀 Seamless Agentic RL Training Integration - With native MCP support and OpenAI Agent SDK compatibility, you can focus on agent logic and seamlessly integrate into RL training workflows.

🤖 Agent as Environment - Treat agents as environments, enabling multi-agent orchestration. Compatible with mainstream agent frameworks including OpenAI Agents SDK.

⚡ Rapid Development to Production - Define tools, build, and deploy in seconds. AEnvironment provides a unified, low-threshold environment API abstraction, making environments no longer a bottleneck in the training pipeline.

Use Cases

Mini Program IDE

Build AI-powered mini-program generation systems where agents leverage AEnvironment as the standard environment infrastructure. The Mini Program example demonstrates:

  • AEnvironment as Infrastructure: Agents utilize AEnvironment as the standardized environment infrastructure, providing consistent tooling and runtime capabilities
  • AI Agent Integration: Multi-turn conversations powered by OpenAI API
  • MCP Tools: File operations, code execution, and validation tools
  • Live Preview: Real-time preview of generated applications
# The agent uses AEnvironment tools to create web applications
async with Environment("mini-program@1.0.0") as env:
    # Agent can use tools like read_file, write_file, execute_python_code
    result = await env.call_tool("write_file", {
        "path": "index.html",
        "content": "<html>...</html>"
    })

https://github.com/user-attachments/assets/23d68f94-3e10-478f-b7da-8f6ee18e47ed

📖 See Mini Program Example for details.

TAU2 RL Training

Train reinforcement learning agents with AReaL framework using TAU2 tasks. The TAU2 RL example shows:

  • RL Integration: Seamless integration with AReaL for agentic RL training
  • Reward Function: Environment exposes reward functions for RL training
  • Episode Runner: Turn-by-turn agent execution with automatic tool invocation
  • Scalable Training: Support for large-scale distributed RL training
# Entrypoint for AReaL training
from aenv.examples.tau2_rl.agent import run_agent_return_reward

# Run a single episode and return reward
reward = await run_agent_return_reward({
    "domain": "telecom",
    "task_id": "task_123"
})

📖 See TAU2 RL Example for details.

Agent as Environment

AEnvironment uniquely supports treating agents themselves as environments. This feature makes multi-agent orchestration, hierarchical agent systems, and agent adversarial testing possible.

With Agent as Environment, you can:

  • Compose Agents: Treat agents as reusable components that can be called like tools
  • Multi-Agent Orchestration: Build complex workflows where agents interact with each other
  • Hierarchical Systems: Create nested agent structures for complex problem-solving
# Agent A calls Agent B as an environment
async with Environment("agent-b@1.0.0") as agent_b:
    # List available tools from Agent B
    tools = await agent_b.list_tools()

    # Call Agent B's chat tool
    response = await agent_b.call_tool("chat", {"message": "Hello!"})
    print(response.content)

This design enables agents to be composed and orchestrated like environments, supporting complex multi-agent scenarios where agents can interact with each other through the same unified interface.

🎯 Built-in Environments

AEnvironment comes with several built-in environments ready to use:

Environment Description Example
TAU2 This environment supports RL experiments with TAU2 benchmark tau2 / tau2_rl
Mini Terminal Lightweight terminal environment with bash command execution support mini-terminal
TerminalBench Supports running Terminal Bench evaluation terminalbench

📖 See Built-in Environments for more details.

Quick Start

📖 For detailed setup instructions, see the Quick Start Guide.

Deploy Skill

The easiest way to deploy AEnvironment instances and services is using our Claude Code Skill. This skill provides automated deployment workflows with full support for instance and service management.

Install Deploy Skill

# Install from GitHub releases
curl -L https://github.com/inclusionAI/AEnvironment/releases/latest/download/aenvironment-deploy.skill -o aenvironment-deploy.skill
claude skill install aenvironment-deploy.skill

Use Deploy Skill

Once installed, you can deploy directly from Claude Code:

Deploy an existing environment:

# Simply ask Claude Code:
# "Deploy game-2048@1.0.6 as an instance with 1 hour TTL"
# "Deploy myapp@2.0.0 as a service with storage enabled"

Supported workflows:

  • Workflow A: Build Docker image locally and deploy
  • Workflow B: Register existing Docker image and deploy
  • Workflow C: Deploy already registered environments (simplest)

Deployment types:

  • Instance: Temporary environment with IP access (for agents, testing)
  • Service: Persistent service with domain access and optional storage (for production apps)

The skill automatically handles:

  • ✅ CLI configuration and validation
  • ✅ Environment registration
  • ✅ Instance/service creation
  • ✅ Environment variable injection
  • ✅ Resource management (list, update, delete)
  • ✅ Error handling and retry

📖 See the Deploy Skill Guide for detailed documentation.

Install SDK and init Environment

# Install SDK
pip install aenvironment

# Initialize a new environment project
aenv init my-env

Define Tools, Functions, and Rewards

from aenv import register_tool, register_function, register_reward

# Register a tool
@register_tool
def search_code(query: str, path: str = ".") -> dict:
    """Search for code patterns in files."""
    # Implementation
    return {"matches": [...]}

# Register a function (for internal use within environment)
@register_function
def calculate_sum(a: int, b: int) -> int:
    """Calculate the sum of two numbers."""
    return a + b

# Register a reward function (for RL training)
@register_reward
def evaluate_task_completion(status: dict) -> float:
    """Evaluate task completion and return reward."""
    if status.get("completed"):
        return 1.0
    return 0.0

Test the Environment

Run your environment locally to test tools:

# Start the MCP server within your project dir
aenv run

This will start an MCP server that exposes your tools for testing and development.

Build and push Environment

# Build and push
aenv build && aenv push

Use Environment

import asyncio
from aenv import Environment

async def main():
    async with Environment("swe-env") as env:
        # List available tools
        tools = await env.list_tools()

        # Call a tool
        result = await env.call_tool("search_code", {"query": "def main"})
        print(result.content)

        # Call a function (for internal use within environment)
        func_result = await env.call_function("calculate_sum", {"a": 10, "b": 20})
        print(f"Function result: {func_result}")

        # Call a reward function (for RL training)
        reward = await env.call_reward({"status": {"completed": True}})
        print(f"Reward: {reward}")

asyncio.run(main())

Performance

We compared performance with other popular sandbox engines for the same simple demo:

image

1 Kubernetes is the currently supported engine in AEnvironment.

2 ASandbox is a high-performance engine planned for open-source release in the future.

📖 Resources

🤝 Contributing

We warmly welcome contributions from the community! Whether you're fixing bugs, adding features, improving documentation, or helping others, your contribution is valued.

# Fork and clone the repository
git clone https://github.com/YOUR-USERNAME/AEnvironment.git
cd AEnvironment

# Install in development mode
cd aenv
pip install -e ".[dev]"

# Set up pre-commit hooks for automatic formatting
pip install pre-commit
pre-commit install

# Make changes
git checkout -b feat/your-feature
git add .
# `git commit` will automatically format your file
git commit -m "Add your feature"
git push

Please check our Contributing Guide for detailed information.

💬 Community & Support

  • GitHub Discussions - Ask questions, share ideas, and connect with the community
  • WeChat Group - Join our WeChat community (微信群)

License

Apache License 2.0 - see LICENSE for details.

README mirrored from the source repository 3 hours ago. The original is authoritative.

Questions

About Aenvironment

How do I install Aenvironment?

Run npx aenvironment, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Aenvironment safe to use with an AI agent?

Its trust score is 80 out of 100 (excellent). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Aenvironment still maintained?

Yes — the latest release is v0.1.7 (21 May 2026), and the last commit was 6 months ago. The repository has 254 stars and 0 open issues.