Skip to main content

aixplain

aixplain SDK

License Marketplace size PAYG API key Discord

Build, deploy, and govern autonomous AI agents — in a few lines of Python.

The fastest way to deploy managed, multi-agent systems with runtime governance — on any infrastructure.

aixplain is the operating system for autonomous AI — multi-agent orchestration and runtime governance across cloud, on-prem, edge, and fully air-gapped environments. It spans the full lifecycle — development → evaluation → deployment → monitoring → evolution — so you ship faster instead of stitching tools together. Agents plan, call models and tools, run code, and adapt at runtime, with agents-in-the-loop governance enforced on every execution.

Build any kind of agent on one runtime — knowledge (RAG), data, custom-logic, integration, and team agents — with built-in memory, multimodality, and file handling.

Develop your way — SDK, API, CLI, and MCP environments all run on the same runtime layer, backed by an integrated marketplace of 900+ AI models, tools, and integrations from 70+ vendors (OpenAI, Anthropic, Gemini, Firecrawl, Tavily, SerpAPI, a code-execution sandbox, and more). One API key, one bill, pay as you go — no per-vendor keys or contracts.

Why aixplain

Less to build, less to operate:

  • Deploy with one callagent.save() promotes an agent to a persistent, versioned endpoint; no Dockerfiles, queues, or autoscaling to manage.
  • No integration glue — reach 900+ models, tools, and integrations through one key; skip per-provider SDKs, auth, and rate-limit handling.
  • Governance you don't have to code — allow-lists, per-asset permissions, rate and usage limits, and enterprise RBAC enforced at runtime.
  • Self-debugging — step-level traces of every plan, tool call, and outcome.
  • Run it anywhere — the same definition runs serverless, on-prem, at the edge, or fully air-gapped.
aixplain SDK Other agent frameworks
Governance Asset/action allow-lists, per-asset permissions, rate and usage limits, and enterprise RBAC Usually custom code or external guardrails
Models and tools 900+ models and tools with one API key Provider-by-provider setup
Deployment Cloud (instant) or on-prem Usually self-assembled runtime and infra
Observability Built-in traces and dashboards Varies by framework
Coding-agent workflows Works natively with MCP-compatible coding agents and IDEs Usually not a first-class workflow target

Agentic OS

Agentic OS is the portable runtime platform behind aixplain agents — orchestration, governed asset serving, and observability across Cloud (instant), on-prem, edge, and air-gapped deployments. See the documentation for the full architecture.


Quick start

This README documents SDK v2, the default API. SDK v1 (the legacy factory API) keeps working until end of July 2026, after which v2 is the only supported surface.

pip install aixplain

Get your API key from your aixplain account, then expose it to the SDK:

export AIXPLAIN_API_KEY=<your-key>

Create and run your first agent

from uuid import uuid4
from aixplain import Aixplain

aix = Aixplain()  # reads AIXPLAIN_API_KEY from the environment

search_tool = aix.Tool.get("tavily/tavily-web-search/tavily")
search_tool.allowed_actions = ["search"]

agent = aix.Agent(
    name=f"Research agent {uuid4().hex[:8]}",
    description="Answers questions with concise web-grounded findings.",
    instructions="Use the search tool when needed and cite key findings.",
    tools=[search_tool],
)
agent.save()

result = agent.run(
    query="Who is the CEO of OpenAI? Answer in one sentence.",
)
print(result.data.output)

Runs return typed objects — read outputs with result.data.output, not dict indexing.

Build a multi-agent team

from uuid import uuid4
from aixplain import Aixplain
from aixplain.v2 import EditorConfig, EvaluatorConfig, EvaluatorType, Inspector, InspectorAction, InspectorActionConfig, InspectorSeverity, InspectorTarget

aix = Aixplain()  # reads AIXPLAIN_API_KEY from the environment
search_tool = aix.Tool.get("tavily/tavily-web-search/tavily")
search_tool.allowed_actions = ["search"]

def never_edit(text: str) -> bool:
    return False

def passthrough(text: str) -> str:
    return text

noop_inspector = Inspector(
    name=f"noop-output-inspector-{uuid4().hex[:8]}",
    severity=InspectorSeverity.LOW,
    targets=[InspectorTarget.OUTPUT],
    action=InspectorActionConfig(type=InspectorAction.EDIT),
    evaluator=EvaluatorConfig(
        type=EvaluatorType.FUNCTION,
        function=never_edit,
    ),
    editor=EditorConfig(
        type=EvaluatorType.FUNCTION,
        function=passthrough,
    ),
)

researcher = aix.Agent(
    name=f"Researcher {uuid4().hex[:8]}",
    instructions="Find and summarize reliable sources.",
    tools=[search_tool],
)

team_agent = aix.Agent(
    name=f"Research team {uuid4().hex[:8]}",
    instructions="Research the topic and return exactly 5 concise bullet points.",
    subagents=[researcher],
    inspectors=[noop_inspector],
)
team_agent.save(save_subcomponents=True)

response = team_agent.run(
    query="Compare OpenAI and Anthropic in exactly 5 concise bullet points.",
)
print(response.data.output)
aixplain team-agent runtime flow

Execution order:

Human prompt: "Compare OpenAI and Anthropic in exactly 5 concise bullet points."

Team agent
├── Planner: breaks the goal into research and synthesis steps
├── Orchestrator: routes work to the right subagent
├── Researcher subagent
│   └── Tavily search tool: finds and summarizes reliable sources
├── Inspector: checks the final output through a simple runtime policy
├── Orchestrator: decides whether another pass is needed
└── Responder: returns one final answer

SDK 1 (legacy): available until end of July 2026 — see the SDK 1 docs.


MCP Server Marketplace

aixplain Marketplace now also exposes MCP servers for 900+ models and tools, allowing external clients to access selected tool, integration, and model assets, for example Opus 4.6, Kimi, Qwen, Airtable, and Slack, through aixplain-hosted MCP endpoints with a single API key 🔑.

Read the full MCP setup guide in the MCP servers docs.

{
  "ms1": {
    "url": "https://models-mcp.aixplain.com/mcp/<AIXPLAIN_ASSET_ID>",
    "headers": {
      "Authorization": "Bearer <AIXPLAIN_APIKEY>",
      "Accept": "application/json, text/event-stream"
    }
  }
}

Core concepts

Concept What it is
Agent An autonomous entity that reasons, plans, and uses tools to complete a task.
Team agent Multiple specialized agents coordinated by a planner and orchestrator at runtime.
Tool A capability an agent can invoke — a model, an integration, or code (Python/SQL).
Model An LLM, utility, or index asset from the marketplace.
Integration A connector to an external service (Slack, Airtable, Gmail, and more) that an agent can act through.
Micro-agents Built-in governance components that run inline on every execution: Mentalist (planning), Orchestrator (routing), Inspector (validation — e.g. block pip installs or network access), Bodyguard (security), Responder (formatting).
Meta-agent An agent that improves other agents — the Evolver monitors KPIs and refines behavior over time.

See the documentation for the full API reference.


Data handling and deployment

aixplain applies runtime governance and enterprise controls by default:

  • We do not train on your data — your data is not used to train foundation models.
  • No data retained by default — agent memory is opt-in (short-term and long-term).
  • SOC 2 Type II certified — enterprise security and compliance posture.
  • Runtime policy enforcement — Inspector and Bodyguard govern every agent execution, with allow-lists for assets and actions, per-asset permissions, rate and usage limits, and enterprise RBAC.
  • Portable deployment options — Cloud (instant) or on-prem (including VPC and air-gapped environments).
  • Encryption — TLS 1.2+ in transit and encrypted storage at rest.

Learn more at aixplain Security and aixplain pricing.


Pricing

Start free, then scale with usage-based pricing.

  • Pay as you go — prepaid usage with no surprise overage bills.
  • Subscription plans — reduce effective consumption-based rates.
  • Custom enterprise pricing — available for advanced scale and deployment needs.

Learn more at aixplain pricing.


Community & support


License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aixplain-0.2.46.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aixplain-0.2.46-py3-none-any.whl (809.3 kB view details)

Uploaded Python 3

File details

Details for the file aixplain-0.2.46.tar.gz.

File metadata

  • Download URL: aixplain-0.2.46.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for aixplain-0.2.46.tar.gz
Algorithm Hash digest
SHA256 cdae99b7ee7b3a57c7b525b6ef4500ef35c57ed09bdee36c57153d59eb536ead
MD5 5949b50127a4972f4c632afd62959415
BLAKE2b-256 5140d5ff51bd8d3f6c0e88a6693a6a26946a4a41c41b55412745837a9ca237ac

See more details on using hashes here.

File details

Details for the file aixplain-0.2.46-py3-none-any.whl.

File metadata

  • Download URL: aixplain-0.2.46-py3-none-any.whl
  • Upload date:
  • Size: 809.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for aixplain-0.2.46-py3-none-any.whl
Algorithm Hash digest
SHA256 e5d882753aaeff19f1bb270ab44c20742ff936062a32c3fbbbfef26883eb0eba
MD5 fefd9dc086d6e1cbde1b2ae5445e974a
BLAKE2b-256 669bee21af31615ceef0eddd289f98246856d7285d779876d7e6585f9421d9d2

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.48

2 files

0.2.47

2 files

This release

0.2.46 This release

2 files

0.2.44

2 files

0.2.43

2 files

0.2.42

2 files

0.2.41

2 files

0.2.40

2 files

0.2.39

2 files

0.2.38

2 files

0.2.37

2 files

0.2.36

2 files

0.2.35

2 files

0.2.34

2 files

0.2.33

2 files

0.2.32

2 files

0.2.31

2 files

0.2.30

2 files

0.2.29

2 files

0.2.28

2 files

0.2.27

2 files

0.2.26

2 files

0.2.25

2 files

0.2.24

2 files

0.2.23

2 files

0.2.22

2 files

0.2.21

2 files

0.2.20

2 files

0.2.19

2 files

0.2.18

2 files

0.2.17

2 files

0.2.16

2 files

0.2.15

2 files

0.2.14

2 files

0.2.12

2 files

0.2.11

2 files

0.2.10

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page