> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anyway.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Pay APIs and get paid using Anyway Wallet — all from your local AI agent.

## Your AI Agent's Wallet

Anyway is the financial OS for AI agents. With Anyway wallet, your agent can:

<CardGroup cols={2}>
  <Card title="Buy" icon="cart-shopping">
    Call any of 100+ paid APIs on SuperAPI and pay with USDC on Base under wallet limits.
  </Card>

  <Card title="Sell" icon="money-bill">
    Accept payments from anyone, in seconds, with Anyway Payment Link
  </Card>
</CardGroup>

This quickstart takes **\< 60 seconds** and **one browser trip**. Just paste a prompt into your local agent.

<Info>
  **Supported agents**

  Claude Code · Cursor · Codex · OpenClaw · Hermes · or any agent that can read a URL.
</Info>

***

## Choose your path

<Tabs>
  <Tab title="🛒 I want to Buy">
    ### Buy in 60 seconds

    Goal: by the end of this section, your agent will have an Agent Wallet and have successfully called a paid Anyway API on your behalf.

    <Steps>
      <Step title="Tell your agent about Anyway">
        Open your local agent and paste this prompt:

        <Tabs>
          <Tab title="Claude Code">
            ```
            Read raw content (use curl), install and setup anyway: https://s.anyway.sh/SKILL.md
            ```

            <Note>
              **Where to paste for Claude Code:** Paste directly into the chat.
            </Note>
          </Tab>

          <Tab title="Cursor">
            ```
            Read raw content (use curl), install and setup anyway: https://s.anyway.sh/SKILL.md
            ```

            <Note>
              **Where to paste for Cursor:** Paste into the chat, or save to `.cursor/rules/anyway.md` to make it persistent across sessions.
            </Note>
          </Tab>

          <Tab title="Codex">
            ```
            Read raw content (use curl), install and setup anyway: https://s.anyway.sh/SKILL.md
            ```

            <Note>
              **Where to paste for Codex:** Paste into the chat.
            </Note>
          </Tab>

          <Tab title="OpenClaw">
            ```
            Read raw content (use curl), install and setup anyway: https://s.anyway.sh/SKILL.md
            ```

            <Note>
              **Where to paste for OpenClaw:** Paste into the chat.
            </Note>
          </Tab>

          <Tab title="Hermes">
            ```
            Read raw content (use curl), install and setup anyway: https://s.anyway.sh/SKILL.md
            ```

            <Note>
              **Where to paste for Hermes:** Paste into the system prompt or chat.
            </Note>
          </Tab>

          <Tab title="Other">
            ```
            Read raw content (use curl), install and setup anyway: https://s.anyway.sh/SKILL.md
            ```

            <Note>
              **Where to paste for Other:** Append the contents of skills/SKILL.md to your project's instructions so every future session starts with this capability.
            </Note>
          </Tab>
        </Tabs>

        <Note>
          **Your agent will say:**

          ```
          🛒 Anyway SuperAPI — Pay-as-you-go APIs for your agent

          Anyway is the payment layer for AI agents. I'll set up your Anyway
          account + Agent Wallet so I can call paid APIs (Firecrawl, Serper,
          Polygon, etc.) and pay with USDC on Base under your Agent Wallet limits.

          This is a one-time setup (~60 seconds).

            1. Open this link to sign up / log in:
               👉 https://app.anyway.sh/cli-auth?callback_port=0

            2. After signup, you'll see your Agent Token. Copy and paste it here.

          ⏳ Waiting for your token...
          ```
        </Note>

        <Frame>
          <img src="https://mintcdn.com/anyway/F3RzK4Lei5hCV4gw/images/quickstart/buy/1_response.png?fit=max&auto=format&n=F3RzK4Lei5hCV4gw&q=85&s=8543d7ca6c62d04bd14dc2375e7c6756" alt="Agent response" width="1750" height="448" data-path="images/quickstart/buy/1_response.png" />
        </Frame>
      </Step>

      <Step title="Sign in once in your browser">
        Click the link your agent gave you. You'll land on a single page that handles the sign-in authentication process automatically:

        | Step | You do                      | Anyway does (in the background)                        |
        | ---- | --------------------------- | ------------------------------------------------------ |
        | 1    | Email OTP or Google sign-in | Creates your Anyway account                            |
        | 2    | Tick "I agree" + reCAPTCHA  | Records TOS consent for non-custodial wallet           |
        | 3    | *automatic*                 | Creates your **Main Wallet** (USDC on Base, Privy MPC) |

        <Frame>
          <img src="https://mintcdn.com/anyway/F3RzK4Lei5hCV4gw/images/quickstart/buy/2_copypaste_token.png?fit=max&auto=format&n=F3RzK4Lei5hCV4gw&q=85&s=6f5b52ba23cec1fbf7ca553a3e8b223d" alt="Copy and paste token" width="1096" height="858" data-path="images/quickstart/buy/2_copypaste_token.png" />
        </Frame>
      </Step>

      <Step title="Create Agent Wallet">
        After signing in, follow the prompts on the GUI to spin up your agent's wallet securely.

        1. Click **"Create Agent Wallet"** on your dashboard.

        <Frame>
          <img src="https://mintcdn.com/anyway/F3RzK4Lei5hCV4gw/images/quickstart/buy/3_create_AW.png?fit=max&auto=format&n=F3RzK4Lei5hCV4gw&q=85&s=1e05c8c030f53cd186e6a18830862589" alt="Create Agent Wallet" width="958" height="746" data-path="images/quickstart/buy/3_create_AW.png" />
        </Frame>

        2. Wait for the creation process to complete.

        3. Once it says **"Wallet Created Successfully"**, save the Agent Wallet Key and paste it back to your agent. If your agent launched this flow from the CLI, the page may also say **"Saved to CLI. You can return to your terminal."** — in that case no manual copy is needed for that terminal session.

        <Frame>
          <img src="https://mintcdn.com/anyway/F3RzK4Lei5hCV4gw/images/quickstart/buy/4_copy_API.png?fit=max&auto=format&n=F3RzK4Lei5hCV4gw&q=85&s=9ffe1aaa92895e4e05df37e820094b91" alt="Copy Agent Wallet Key" width="1010" height="534" data-path="images/quickstart/buy/4_copy_API.png" />
        </Frame>
      </Step>

      <Step title="Check credits, then fund if needed">
        New orgs receive starter Anyway Credits when the Main Wallet is created. SuperAPI/x402 calls spend those org-level USD credits first; wallet USDC is only needed after Org Credits are insufficient.

        Check credits from the agent runtime:

        ```bash theme={null}
        anyway wallets agents credit-balance
        ```

        To add wallet USDC after Org Credits are insufficient, click the **Fund** button next to your Agent Wallet balance.

        <Frame>
          <img src="https://mintcdn.com/anyway/F3RzK4Lei5hCV4gw/images/quickstart/buy/5_fund_wallet.png?fit=max&auto=format&n=F3RzK4Lei5hCV4gw&q=85&s=eccc3d34f0d555c590ba61bbbcda2392" alt="Fund wallet button" width="1564" height="656" data-path="images/quickstart/buy/5_fund_wallet.png" />
        </Frame>

        In the modal, enter the amount to transfer from your Main Wallet and confirm.

        <Frame>
          <img src="https://mintcdn.com/anyway/F3RzK4Lei5hCV4gw/images/quickstart/buy/6_fund_amount.png?fit=max&auto=format&n=F3RzK4Lei5hCV4gw&q=85&s=b9573c7d6d06f350688f1a78f88ef081" alt="Fund amount modal" width="948" height="812" data-path="images/quickstart/buy/6_fund_amount.png" />
        </Frame>

        **Or ask your agent to request funding from the wallet owner:**

        ```
        Ask my wallet owner to fund this agent wallet with $10 USDC after Org Credits run out.
        ```
      </Step>

      <Step title="Make your first paid call">
        Try a real paid API. Ask your agent:

        ```
        use Anyway Agent Wallet in SuperAPI to fetch @anyway_sh's latest tweet
        ```

        <Frame>
          <img src="https://mintcdn.com/anyway/F3RzK4Lei5hCV4gw/images/quickstart/buy/7_make_api_call.png?fit=max&auto=format&n=F3RzK4Lei5hCV4gw&q=85&s=c52a98349176da74995505b01657f971" alt="First paid API call" width="1032" height="1082" data-path="images/quickstart/buy/7_make_api_call.png" />
        </Frame>
      </Step>
    </Steps>

    <Tip>
      🎉 **You're done buying.**

      Your agent can now autonomously pay for any Anyway SuperAPI, within the policy limits you control.

      [View SuperAPI](https://app.anyway.sh/marketplace) · [Adjust Policy →](https://app.anyway.sh/wallets)
    </Tip>
  </Tab>

  <Tab title="💰 I want to Sell">
    ### Sell in 60 seconds

    Goal: by the end of this section, you'll have a Payment Link that anyone — a human or another agent — can use to send you USDC.

    <Steps>
      <Step title="Tell your agent you want to get paid">
        Open your local agent and paste this prompt:

        <Tabs>
          <Tab title="Claude Code">
            ```
            Read raw content (use curl), install and setup anyway: https://s.anyway.sh/SKILL.md
            ```

            <Note>
              **Where to paste for Claude Code:** Paste directly into the chat.
            </Note>
          </Tab>

          <Tab title="Cursor">
            ```
            Read raw content (use curl), install and setup anyway: https://s.anyway.sh/SKILL.md
            ```

            <Note>
              **Where to paste for Cursor:** Paste into the chat, or save to `.cursor/rules/anyway.md` to make it persistent across sessions.
            </Note>
          </Tab>

          <Tab title="Codex">
            ```
            Read raw content (use curl), install and setup anyway: https://s.anyway.sh/SKILL.md
            ```

            <Note>
              **Where to paste for Codex:** Paste into the chat.
            </Note>
          </Tab>

          <Tab title="OpenClaw">
            ```
            Read raw content (use curl), install and setup anyway: https://s.anyway.sh/SKILL.md
            ```

            <Note>
              **Where to paste for OpenClaw:** Paste into the chat.
            </Note>
          </Tab>

          <Tab title="Hermes">
            ```
            Read raw content (use curl), install and setup anyway: https://s.anyway.sh/SKILL.md
            ```

            <Note>
              **Where to paste for Hermes:** Paste into the system prompt or chat.
            </Note>
          </Tab>

          <Tab title="Other">
            ```
            Read raw content (use curl), install and setup anyway: https://s.anyway.sh/SKILL.md
            ```

            <Note>
              **Where to paste for Other:** Append the contents of skills/SKILL.md to your project's instructions so every future session starts with this capability.
            </Note>
          </Tab>
        </Tabs>

        <Note>
          **Your agent will say:**

          ```
          🔗 Anyway — Get paid in USDC, instantly

          Anyway lets you (or your agent) accept USDC payments via a single
          link. No KYC, zero gas for the payer.

          I'll set up your wallet + first Payment Link. ~60 seconds.

            1. Open this link to sign up / log in:
               👉 https://app.anyway.sh/cli-auth?callback_port=0

            2. After signup, you'll see your Agent Token. Copy and paste it here.

          ⏳ Waiting for your token...
          ```
        </Note>

        <Frame>
          <img src="https://mintcdn.com/anyway/F3RzK4Lei5hCV4gw/images/quickstart/sell/1_response.png?fit=max&auto=format&n=F3RzK4Lei5hCV4gw&q=85&s=00797910455f66b295b7c69ac8bd625c" alt="Agent response" width="1750" height="448" data-path="images/quickstart/sell/1_response.png" />
        </Frame>
      </Step>

      <Step title="Sign in once in your browser">
        Click the link your agent gave you. You'll land on a single page that handles the sign-in authentication process automatically:

        | Step | You do                      | Anyway does                                  |
        | ---- | --------------------------- | -------------------------------------------- |
        | 1    | Email OTP or Google sign-in | Creates your Anyway account                  |
        | 2    | Tick "I agree" + reCAPTCHA  | Records TOS consent for non-custodial wallet |
        | 3    | *automatic*                 | Creates your **Main Wallet** (USDC on Base)  |

        <Frame>
          <img src="https://mintcdn.com/anyway/F3RzK4Lei5hCV4gw/images/quickstart/sell/2_copypaste_token.png?fit=max&auto=format&n=F3RzK4Lei5hCV4gw&q=85&s=e89143fd57707c5e89f34cc5154fc668" alt="Copy and paste token" width="1096" height="858" data-path="images/quickstart/sell/2_copypaste_token.png" />
        </Frame>
      </Step>

      <Step title="Paste the token back to your agent">
        <Note>
          **Your agent will say:**

          ```
          ✅ Connected to Anyway as you@example.com

          Here's everything you need to start receiving payments:

            💰 Main Wallet
               Address:  0x1a2B...9cD4  (USDC on Base)

            🔗 Payment Link (accepts any amount)
               https://app.anyway.sh/pay/PL26SJX3OPX7UYZA

            🤖 Pay-Agent API (for other agents to pay you autonomously)
               GET https://app-prod.anyway.sh/v1/pay/agent/PL26SJX3OPX7UYZA

          Share the Payment Link with anyone — humans see a checkout page,
          agents call the API to pay programmatically.
          ```
        </Note>

        <Frame>
          <img src="https://mintcdn.com/anyway/F3RzK4Lei5hCV4gw/images/quickstart/sell/3_connected.png?fit=max&auto=format&n=F3RzK4Lei5hCV4gw&q=85&s=e3bc6ac125058b57816be06a20f03126" alt="Connected confirmation" width="990" height="1400" data-path="images/quickstart/sell/3_connected.png" />
        </Frame>
      </Step>

      <Step title="Share the link">
        <CardGroup cols={2}>
          <Card title="Send to a person">
            Paste the URL in DM, email, or social bio. They see a fast checkout page.
          </Card>

          <Card title="Let agents pay you">
            Share the `/v1/pay/agent/` endpoint for programmatic payments.
          </Card>
        </CardGroup>
      </Step>

      <Step title="Create more links as you need them">
        Ask your agent. No dashboard needed:

        ```
        Create a $25 fixed-amount payment link for my API consulting service.
        ```

        ```
        Create a flexible payment link for tipping, with a default suggestion of $5.
        ```
      </Step>
    </Steps>

    <Tip>
      🎉 **You're done selling.**

      Funds settle on-chain to your Main Wallet in under a second. View, withdraw, or move USDC any time.

      [View Wallets](https://app.anyway.sh/wallets)
    </Tip>
  </Tab>
</Tabs>
