Allways for agents
Swap any listed asset for any other across chains, from any agent. No account, no API key.
What agents can do
- Quote: get the best rate for a pair and an amount.
- Open a swap: get a deposit address for the exact send amount.
- Hand off the deposit: get a payment URI or an unsigned transaction for the agent's wallet.
- Track: read the swap until it reaches a terminal status.
- Report a problem: send a stuck swap to the team with its diagnosis.
- Refer: make a referral code and pass it on swaps.
Allways never holds keys and never signs. The agent's own wallet sends the deposit.
Connect
The MCP server is at https://all-ways.io/mcp (Streamable HTTP, no auth).
Claude Code
claude mcp add --transport http allways https://all-ways.io/mcp
Claude (web and desktop)
- Open Customize > Connectors.
- Click "+ Add", then "Add custom connector".
- Enter the name
Allwaysand the URLhttps://all-ways.io/mcp, then continue. - Set Authentication to "No sign in", then click "Add".
On Team and Enterprise plans an owner adds it under Organization settings > Connectors. Claude docs
Cursor
Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
{ "mcpServers": { "allways": { "url": "https://all-ways.io/mcp" } } }
Or use the install link: Add Allways to Cursor. Cursor docs
ChatGPT
- In ChatGPT on the web, open Plugins.
- Select the plus button, then "Add custom MCP server".
- Enter the name
Allwaysand the server URLhttps://all-ways.io/mcp. - Choose no authentication, accept the risk warning, then select "Create as a plugin".
- Install the plugin, then type
@in a chat to use it.
OpenAI Codex
codex mcp add allways --url https://all-ways.io/mcp
Or add this to ~/.codex/config.toml:
[mcp_servers.allways]
url = "https://all-ways.io/mcp"
Any other client
For clients that take a JSON server list:
{ "mcpServers": { "allways": { "type": "http", "url": "https://all-ways.io/mcp" } } }
Agent Skill
For agents that load skills (Claude Code and others), install the swap flow as a skill:
mkdir -p ~/.claude/skills/allways && curl -fsSL https://all-ways.io/skill.md -o ~/.claude/skills/allways/SKILL.md
HTTP quickstart
Four calls. Amounts are decimal strings in whole units.
# 1. Find the asset id for each side.
curl 'https://all-ways.io/api/assets?q=usdc+base'
# 2. Quote. Keep amountIn and best.amountOut.
curl -X POST https://all-ways.io/api/quotes \
-H 'content-type: application/json' \
-d '{"from":"<from id>","to":"<to id>","amount":"100"}'
# 3. Open the swap. Reuse the same Idempotency-Key on a retry.
curl -X POST https://all-ways.io/api/swaps \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <unique key>' \
-d '{"from":"<from id>","to":"<to id>","amount":"<amountIn>","expectedOut":"<amountOut>","payout":{"address":"<your address>"},"refund":{"address":"<your address on the send chain>"}}'
# 4. Read the swap until its status is finished, refunded, failed or expired.
curl https://all-ways.io/api/swaps/<id>
The opened swap tells the agent how to send the deposit:
deposit.address: send exactlyamountInhere, withdeposit.memoif it is set.deposit.uri: the same deposit as a payment URI, for a wallet that takes one.deposit.tx(EVM): the deposit as an unsigned transaction. Hand it to the wallet to sign and send.POST /api/swaps/{id}/deposit-tx(Solana): returns the deposit as an unsigned transaction. Hand it to the wallet to sign and send.POST /api/swaps/{id}/deposit-tx(TAO): returns the deposit as an unsigned call. Or send it withbtcli tx transfer --dest <deposit.address> --amount-tao <amountIn>;amountInis whole TAO.
When something goes wrong
- Report every swap problem through Allways itself: MCP
report_swap_problem,POST /api/swaps/{id}/report, or "Report a problem" on the swap page. This is the support channel. A report reaches the team with the swap's diagnosis. - Report once for
stuck,under_deposit, oraml_hold, or anything else wrong with a swap. Send the category, a 10–500 character message, and an optional reply email. - The team receives the report together with the swap's diagnosis. A repeat adds to the same case; after five entries, wait for the team instead of retrying.
- Without a reply email there is no written reply. Watch the swap with
get_swap:status,refundTx, andreported, which turns false when the team closes the case. - A successful report makes
reported: trueonget_swapwhile the case is open.price_moveddoes not need a report; tell the user the payout follows the market.
Rules that protect the user's funds
- Send on the exact chain of the
fromasset id. A deposit on another chain can be lost. - If
deposit.memois set, the transfer must carry that memo or destination tag. Without it the deposit cannot be matched. - Send once, by one method:
deposit.tx, the built Solana transaction, the TAO command or call,deposit.urior a manual send. Never two of them. A second send to the same deposit address is outside the quote and may need support to recover. - Give a
refundaddress on the send chain when you open the swap; it is where funds return if the swap cannot complete. It is set once, at open, and never changed later. Use an address the user controls. - Generate one
Idempotency-Key(MCPidempotencyKey, required) per intended swap and reuse it on every retry of that create, so a retry never opens a second swap. - Do not send after the swap expired. Open a new one.
- Never ask the user for a seed phrase or private key. Allways never needs one.
noticeson a swap flagunder_deposit,stuck,aml_holdorprice_moved: report them to the user.
Gas
- Keep a little native gas on the send chain: ETH on Ethereum and Base, SOL on Solana, and so on.
- Allways never pays gas. The deposit is a normal transfer from the sender's wallet, and the sender pays its network fee.
No wallet yet?
An agent needs a wallet on the send chain to make the deposit. Agent wallet providers cover EVM and Solana:
| Send chain | Providers |
|---|---|
| EVM (Ethereum, Base, ...) | Coinbase Agentic Wallet, Privy, Phantom MCP server, Turnkey |
| Solana | Privy, Phantom MCP server, Turnkey |
| Any other chain (Bitcoin, Bittensor, Tron, XRP, TON, ...) | Any wallet that can send on that chain works. Allways only needs one transfer of the exact amount, with the memo or tag when the deposit has one. |
These links are not endorsements. Allways never holds your keys or funds.
Referrals
Referrers earn on swaps opened with their code. A referrer account is a Bittensor coldkey, and rewards are paid to it. Self-referral is allowed: an agent may pass its own code on its own swaps.
POST /api/auth/wallet/challenge{address}returns amessage. Sign it with the coldkey.POST /api/auth/wallet/verify{address, nonce, signature, bearer: true}returns atoken, valid 30 days.POST /api/me/referral-codeswithAuthorization: Bearer <token>makes a random code. Custom codes are set up by the Allways team.- Pass the code as
referralCodewhen opening swaps.GET /api/me/referral-codesshows swaps, volume and users per code. GET /api/referrals/leaderboardandGET /api/referrals/payoutsare public.
Links
- llms.txt: the short guide for agents.
- llms-full.txt: llms.txt plus this page.
- skill.md: the swap flow as an Agent Skill.
- openapi.json: every route, field and error.
- /.well-known/mcp.json: the MCP server card.