Run both continuation commands in order; the first completes login and the second saves the Agent Wallet Key. Repeat a continuation command while its status is pending.
Use the directory entry’s id as upstream_id, then copy the callable x402 URL from the info response’s curl_x402 field:
anyway superapi call "<x402 endpoint URL>"
The CLI makes the initial request, reads the 402 quote, asks for confirmation, signs the payment, retries the call, and prints the API response.
Use --yes only in an agent runtime where automatic approval is intentional. Wallet balance and spending policies remain the final guardrails.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Anyway","colors":{"primary":"#2D2D2D","light":"#FFF861","dark":"#8F8800"},"logo":{"light":"https://mintcdn.com/anyway/lzJXv0iw-9ZF48px/logo/light-logo.svg?fit=max\u0026auto=format\u0026n=lzJXv0iw-9ZF48px\u0026q=85\u0026s=ead8b3bc1589dc138b30ef3db4eccd19","dark":"https://mintcdn.com/anyway/lzJXv0iw-9ZF48px/logo/dark-logo.svg?fit=max\u0026auto=format\u0026n=lzJXv0iw-9ZF48px\u0026q=85\u0026s=a72b31cae40b75ef38b97277be463458"},"favicon":{"light":"https://mintcdn.com/anyway/lzJXv0iw-9ZF48px/favicon.svg?fit=max\u0026auto=format\u0026n=lzJXv0iw-9ZF48px\u0026q=85\u0026s=01fedcfc4d0754a2d89c79ceaf98df31","dark":"https://mintcdn.com/anyway/lzJXv0iw-9ZF48px/favicon-white.svg?fit=max\u0026auto=format\u0026n=lzJXv0iw-9ZF48px\u0026q=85\u0026s=0ea64c8d600f4ab98310dc9f268e1008"},"footer":{"socials":{"x":"https://x.com/aianyway","linkedin":"https://linkedin.com/company/aianyway"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Anyway.sh","icon":"house","href":"https://anyway.sh"},{"anchor":"AI Agent Skill","icon":"wand-magic-sparkles","href":"/skills"}]},"languages":[{"language":"en","default":true,"navbar":{"links":[{"href":"mailto:support@anyway.sh","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.anyway.sh"}},"href":"concepts"},{"language":"cn","navbar":{"links":[{"href":"mailto:support@anyway.sh","label":"支持"}],"primary":{"type":"button","label":"打开控制台","href":"https://app.anyway.sh"}},"href":"zh/concepts"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"anyway","hasAudioNarration":false,"actualSubdomain":"anyway","customDomains":["docs.anyway.sh"],"gitSource":{"type":"github","owner":"anyway-platform","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af66c068aa37d91255af7cc","clientVersion":"0.0.4124","searchFilterCounts":[{"language":"en","tag":"API Reference","count":34},{"language":"cn","tag":"API 参考","count":34},{"language":"en","tag":"Merchant API endpoints","count":23},{"language":"cn","tag":"Merchant API 端点","count":23},{"language":"en","tag":"Business","count":20},{"language":"cn","tag":"Business","count":20},{"language":"en","tag":"Start","count":10},{"language":"cn","tag":"开始使用","count":10},{"language":"en","tag":"Agents","count":7},{"language":"cn","tag":"Agents","count":7},{"language":"en","tag":"Payment","count":6},{"language":"cn","tag":"支付","count":6},{"language":"en","tag":"Changelog","count":5},{"language":"en","tag":"MoR","count":5},{"language":"cn","tag":"更新日志","count":5},{"language":"cn","tag":"MoR","count":5},{"language":"en","tag":"Merchant API","count":4},{"language":"cn","tag":"Merchant API","count":4},{"language":"en","tag":"Wallets \u0026 funding","count":3},{"language":"cn","tag":"钱包与资金","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@media (min-width: 1024px){#sidebar.fixed.bottom-0{top:7rem;height:calc(100vh - 7rem);height:calc(100dvh - 7rem)}}.cl-page{max-width:64rem!important;margin:0 auto;padding:4rem 1.5rem 6rem}.cl-hero{padding-bottom:3rem;border-bottom:1px solid rgb(0 0 0 / 0.08)}.dark .cl-hero{border-color:rgb(255 255 255 / 0.08)}.cl-hero h1{margin:0;font-size:3.5rem;line-height:1.1;font-weight:700;letter-spacing:-0.02em}.cl-hero p{margin-top:1rem;font-size:1.25rem}.cl-page .cl-back{border-bottom:0;display:inline-block;margin-bottom:1.5rem;font-size:0.95rem}.cl-page .update{padding:3.5rem 0}@media (min-width: 1024px){.cl-page .update{position:relative;gap:3rem}.cl-page .update::before{content:\"\";position:absolute;top:0;bottom:0;left:4px;width:1px;background:rgb(0 0 0 / 0.1)}.dark .cl-page .update::before{background:rgb(255 255 255 / 0.12)}.cl-hero+.update::before,.cl-page .update:first-of-type::before{top:4.25rem}.cl-page .update [data-component-part=\"update-label\"]{position:relative;padding-left:1.75rem}.cl-page [data-component-part=\"update-label\"]::before{content:\"\";position:absolute;top:50%;left:0;width:9px;height:9px;border-radius:9999px;background:rgb(156 163 175);transform:translateY(-50%)}.cl-page .update>div:has([data-component-part=\"update-label\"]){width:16rem}}.cl-page [data-component-part=\"update-label\"]{padding:0;background:none;font-size:1rem;font-weight:400;color:rgb(107 114 128)}.cl-page [data-component-part=\"update-content\"]{font-size:1.125rem;line-height:1.75}.cl-page [data-component-part=\"update-content\"]>:is(h1,h2):first-child{margin-top:0;font-size:2.5rem;line-height:1.2;letter-spacing:-0.02em}.cl-page [data-component-part=\"update-content\"]>:is(h1,h2):first-child a{border-bottom:0;text-decoration:none}"}],"page":{"pagePath":"features/sandbox","slug":"/features/sandbox","pageMetadata":{"title":"Agents Quickstart","description":"Create an agent wallet, fund it, and make a paid API call.","icon":"rocket","href":"/features/sandbox"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create an agent wallet, fund it, and make a paid API call.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`To test in the sandbox, use the hosts listed in `,_jsx(_components.a,{href:`/features/sandbox-environment`,children:`Sandbox test environment`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`1-install-the-cli`,children:`1. Install the CLI`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -g`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @anyway-sh/cli`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`2-create-your-first-agent-wallet`,children:`2. Create your first agent wallet`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`anyway`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --agent-wallet`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This opens one browser flow that:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`signs you in;`}),`\n`,_jsx(_components.li,{children:`creates the owner wallet if needed;`}),`\n`,_jsx(_components.li,{children:`creates an agent wallet; and`}),`\n`,_jsx(_components.li,{children:`securely returns the Agent Wallet Key to the CLI.`}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The key is revealed once. Store the downloaded backup securely and never commit it, paste it into chat, or include it in logs.`})}),`\n`,_jsx(_components.p,{children:`For a non-interactive environment, begin the device flow and resume it after the owner approves:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`anyway`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --agent-wallet`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --non-interactive`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`anyway`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` login`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --continue`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`anyway`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` wallets`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agents`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` create`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --continue`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Run both continuation commands in order; the first completes login and the second saves the Agent Wallet Key. Repeat a continuation command while its status is pending.`}),`\n`,_jsx(Heading,{level:`2`,id:`3-fund-the-wallet`,children:`3. Fund the wallet`}),`\n`,_jsxs(_components.p,{children:[`Open `,_jsx(_components.a,{href:`https://app.anyway.sh/wallets?view=agent`,children:`Agent Wallets`}),`, then:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`add funds to the buffer balance;`}),`\n`,_jsxs(_components.li,{children:[`select `,_jsx(_components.strong,{children:`Distribute funds`}),`;`]}),`\n`,_jsx(_components.li,{children:`choose the agent wallet and amount.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Credits and USDC are different:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Credits are shared by the organization and are used first for eligible SuperAPI calls.`}),`\n`,_jsx(_components.li,{children:`USDC is allocated to a specific agent wallet.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`4-confirm-the-agent-identity`,children:`4. Confirm the agent identity`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ANYWAY_AGENT_WALLET_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cyour key>\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`anyway`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` wallets`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agents`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` whoami`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`anyway`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` wallets`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agents`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` policies`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`anyway`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` wallets`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agents`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` credit-balance`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`whoami`}),` identifies the agent and wallet. `,_jsx(_components.code,{children:`credit-balance`}),` reports the organization’s USD Credits, not the wallet’s USDC balance.`]}),`\n`,_jsx(Heading,{level:`2`,id:`5-discover-and-call-a-paid-api`,children:`5. Discover and call a paid API`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://marketplace-prod.anyway.sh/v1/api/directory`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://marketplace-prod.anyway.sh/v1/api/info/{upstream_id}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Use the directory entry’s `,_jsx(_components.code,{children:`id`}),` as `,_jsx(_components.code,{children:`upstream_id`}),`, then copy the callable x402 URL from the info response’s `,_jsx(_components.code,{children:`curl_x402`}),` field:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`anyway`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` superapi`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` call`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"\u003cx402 endpoint URL>\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The CLI makes the initial request, reads the 402 quote, asks for confirmation, signs the payment, retries the call, and prints the API response.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`--yes`}),` only in an agent runtime where automatic approval is intentional. Wallet balance and spending policies remain the final guardrails.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Agents Quickstart","description":"Create an agent wallet, fund it, and make a paid API call.","icon":"rocket","href":"/features/sandbox"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"1. Install the CLI","slug":"1-install-the-cli","depth":2,"children":[]},{"title":"2. Create your first agent wallet","slug":"2-create-your-first-agent-wallet","depth":2,"children":[]},{"title":"3. Fund the wallet","slug":"3-fund-the-wallet","depth":2,"children":[]},{"title":"4. Confirm the agent identity","slug":"4-confirm-the-agent-identity","depth":2,"children":[]},{"title":"5. Discover and call a paid API","slug":"5-discover-and-call-a-paid-api","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"anyway","siteName":"Anyway","title":"Agents Quickstart - Anyway","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/features/sandbox","matchLevel":0},"cn":{"href":"/zh/features/sandbox","matchLevel":1}}},"lastModified":"2026-11-02T01:27:07.556Z","originalFileLocation":"features/sandbox.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create an agent wallet, fund it, and make a paid API call.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Anyway\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/anyway/PGUdeiWjDFhsUOPo/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/anyway/PGUdeiWjDFhsUOPo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/anyway/PGUdeiWjDFhsUOPo/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/anyway/PGUdeiWjDFhsUOPo/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/anyway/PGUdeiWjDFhsUOPo/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/anyway/PGUdeiWjDFhsUOPo/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/anyway/PGUdeiWjDFhsUOPo/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/anyway/PGUdeiWjDFhsUOPo/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/anyway/PGUdeiWjDFhsUOPo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Agents Quickstart - Anyway\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create an agent wallet, fund it, and make a paid API call.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Anyway\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.anyway.sh/features/sandbox\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://anyway.mintlify.site/_mintlify/api/og/v2?division=Start\u0026amp;title=Agents+Quickstart\u0026amp;description=Create+an+agent+wallet%2C+fund+it%2C+and+make+a+paid+API+call.\u0026amp;theme=e3fd7b8b4217c9660980b98d\u0026amp;signature=b9c2f14e1cbffbfa92e8af56f18fb6f88fa6e5d2683a52be574e572a50f55855\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Agents Quickstart - Anyway\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create an agent wallet, fund it, and make a paid API call.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://anyway.mintlify.site/_mintlify/api/og/v2?division=Start\u0026amp;title=Agents+Quickstart\u0026amp;description=Create+an+agent+wallet%2C+fund+it%2C+and+make+a+paid+API+call.\u0026amp;theme=e3fd7b8b4217c9660980b98d\u0026amp;signature=b9c2f14e1cbffbfa92e8af56f18fb6f88fa6e5d2683a52be574e572a50f55855\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/anyway/PGUdeiWjDFhsUOPo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Anyway\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2D2D2D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.anyway.sh/features/sandbox\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/features/sandbox.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.anyway.sh/features/sandbox\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.anyway.sh/zh/features/sandbox\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.anyway.sh/features/sandbox\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.anyway.sh/#organization\",\"name\":\"Anyway\",\"url\":\"https://docs.anyway.sh\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/anyway/lzJXv0iw-9ZF48px/logo/light-logo.svg?fit=max\u0026auto=format\u0026n=lzJXv0iw-9ZF48px\u0026q=85\u0026s=ead8b3bc1589dc138b30ef3db4eccd19\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.anyway.sh#website\",\"name\":\"Anyway\",\"url\":\"https://docs.anyway.sh\",\"publisher\":{\"@id\":\"https://docs.anyway.sh/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.anyway.sh/features/sandbox#webpage\",\"url\":\"https://docs.anyway.sh/features/sandbox\",\"name\":\"Agents Quickstart\",\"description\":\"Create an agent wallet, fund it, and make a paid API call.\",\"dateModified\":\"2026-11-02T01:27:07.556Z\",\"isPartOf\":{\"@id\":\"https://docs.anyway.sh#website\"},\"breadcrumb\":{\"@id\":\"https://docs.anyway.sh/features/sandbox#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.anyway.sh/features/sandbox#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Start\",\"item\":\"https://docs.anyway.sh/features/agents-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agents Quickstart\",\"item\":\"https://docs.anyway.sh/features/sandbox\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.anyway.sh/features/sandbox#article\",\"headline\":\"Agents Quickstart\",\"name\":\"Agents Quickstart\",\"description\":\"Create an agent wallet, fund it, and make a paid API call.\",\"url\":\"https://docs.anyway.sh/features/sandbox\",\"mainEntityOfPage\":{\"@id\":\"https://docs.anyway.sh/features/sandbox#webpage\"},\"dateModified\":\"2026-11-02T01:27:07.556Z\",\"publisher\":{\"@id\":\"https://docs.anyway.sh/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.anyway.sh#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Anyway\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Anyway\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/features/sandbox.md","siteName":"Anyway","nav":{"global":{"anchors":[{"anchor":"Anyway.sh","icon":"house","href":"https://anyway.sh"},{"anchor":"AI Agent Skill","icon":"wand-magic-sparkles","href":"/skills"}]},"languages":[{"language":"en","default":true,"navbar":{"links":[{"href":"mailto:support@anyway.sh","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.anyway.sh"}},"tabs":[{"tab":"Business","icon":"building","pages":[{"title":"Business","href":"/concepts"}]},{"tab":"Agents","icon":"robot","groups":[{"group":"Start","pages":[{"title":"Anyway Agents","description":"Give agents a controlled way to pay for APIs and track what they spend.","icon":"robot","href":"/features/agents-overview"},{"title":"Agents Quickstart","icon":"rocket","href":"/features/sandbox"},{"title":"Agents App Guide","description":"Navigate SuperAPI, Agent Wallets, funding, wallet activity, and shortcuts.","icon":"window","href":"/features/agents-app"}]},{"group":"Wallets \u0026 funding","pages":[{"title":"Agent Wallets","icon":"wallet","href":"/features/agent-wallet"},{"title":"Credits \u0026 Funding","icon":"coins","href":"/billing/usage-limits"},{"title":"Wallet Activity \u0026 Security","icon":"wave-pulse","href":"/features/cost-tracking"}]},{"group":"Paid APIs","pages":[{"title":"SuperAPI","icon":"store","href":"/features/super-api"}]}]},{"tab":"API Reference","icon":"square-terminal","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Changelog","icon":"clock-rotate-left","pages":[{"title":"Changelog","href":"/changelog"}]}]},{"language":"cn","navbar":{"links":[{"href":"mailto:support@anyway.sh","label":"支持"}],"primary":{"type":"button","label":"打开控制台","href":"https://app.anyway.sh"}},"pages":[{"title":"cn","href":"/zh/features/sandbox"}]}]},"basePath":"","title":"Agents Quickstart - Anyway","buildId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","deploymentId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","dynamics":[],"chunks":[]}