# For AI Agents

Want to let an AI agent operate on XION with a gasless workflow?

{% hint style="warning" %}
**Beta:** Xion Agent Toolkit is in **beta**. It supports **testnet** (default) and **mainnet**—use `--network mainnet` or `xion-toolkit config set-network mainnet` for production. Start on testnet for development; the faucet is testnet-only.
{% endhint %}

Copy the instruction below into your AI coding assistant:

```
Follow this guide https://raw.githubusercontent.com/burnt-labs/xion-agent-toolkit/main/INSTALL-FOR-AGENTS.md to install and configure the Xion Agent Toolkit skills for AI agents.
```

{% hint style="info" %}
This setup is designed for AI-assisted development on XION with Meta Accounts, Treasury management, and OAuth2 client management. It is not limited to one IDE.
{% endhint %}

## What this gives you

* **Meta Account auth** via OAuth2 (no private key management)
* **Treasury management** for gasless operations and delegated permissions
* **OAuth2 client management** for app registration and lifecycle
* **Agent-friendly workflows** through skills like `xion-dev`, `xion-oauth2`, `xion-treasury`, and `xion-oauth2-client`

## High-level flow

```mermaid
flowchart TD
    start[Developer or AI Agent] --> copy[Copy one-line install instruction]
    copy --> auth[Authenticate with xion-toolkit]
    auth --> treasury[Treasury management]
    treasury --> oauth[OAuth2 client management]
    oauth --> gasless[Run gasless app operations]
    gasless --> next[Continue in full tutorial]
```

## Continue to full guide

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Xion Agent Toolkit Tutorial</strong><br>Step-by-step guide for installation, auth, treasury workflows, OAuth2 client management, and troubleshooting.</td><td><a href="/pages/yBHn5rypytcDc0aeKUN9">/pages/yBHn5rypytcDc0aeKUN9</a></td></tr></tbody></table>

## References

* [Xion Agent Toolkit Repository](https://github.com/burnt-labs/xion-agent-toolkit)
* [Install for AI Agents](https://raw.githubusercontent.com/burnt-labs/xion-agent-toolkit/main/INSTALL-FOR-AGENTS.md)
* [CLI Reference](https://github.com/burnt-labs/xion-agent-toolkit/blob/main/docs/cli-reference.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.burnt.com/xion/xions-core/ai-agents.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
