Skip to main content
skill CX Codex

1inch — Claude Code skill: swaps and limit orders

A skill that runs 1inch swaps: same-chain token trades, SOL↔EVM cross-chain and limit orders. Useful when the agent should execute the trade itself.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Starchild-ai-agent/official-skills --skill 1inch -a claude-code
Open on GitHub

What 1inch does

Everything runs through local scripts under skills/1inch/scripts/, not through platform-injected tools. The agent calls them with plain bash and python3, so a failed tool registration no longer blocks the work. The set covers token lookup, quotes, allowance checks and approvals, the swap itself, and run_swap_flow.py — one command that quotes, optionally approves, swaps and then verifies balances.

You need ONEINCH_API_KEY and WALLET_SERVICE_URL set beforehand. Calls to 1inch go through sc-proxy only: the scripts read HTTP_PROXY/HTTPS_PROXY first, fall back to PROXY_HOST and PROXY_PORT, and stop with an explicit error when neither is present instead of connecting directly. Supported chains are ethereum, arbitrum, base, optimism, polygon, bsc, avalanche and gnosis.

Amounts are given in human units and the decimal conversion happens inside the script. When a symbol has several variants on one chain, such as USDC and USDC.e, pass the contract address — otherwise the swap can land on the wrong token. Native gas tokens go in as native or ETH.

What it helps with

  • swap ETH for USDC on Base with routing picked for you
  • move SOL into ETH across chains
  • place a limit buy for ARB at 0.80
  • check allowance and approve before a swap
  • run a full swap in one command with before/after balance checks

Example prompts for the agent

  • Search for the POL token on polygon and show the first 10 matches
  • Quote 1 USDC to POL on polygon
  • Swap 1 USDC to POL on polygon with 1.0 slippage and auto-approve

How to install 1inch

1Skills CLI (Vercel)

npx skills add Starchild-ai-agent/official-skills --skill 1inch -a claude-code

2Manually: put the files in place

~/.claude/skills/1inch/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/1inch/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about 1inch

How do I install 1inch in Claude Code?

Run npx skills add Starchild-ai-agent/official-skills --skill 1inch -a claude-code. The skill lands in ~/.claude/skills/1inch/SKILL.md.

What does the 1inch skill do?

It executes swaps through the 1inch aggregator on a single chain, SOL↔EVM cross-chain trades and limit orders. All of it runs as local scripts the agent invokes.

What does the skill need to work?

ONEINCH_API_KEY and WALLET_SERVICE_URL, plus reachable sc-proxy — without a proxy the scripts halt with an error.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set34

feishu-binding This skill walks through device flow authorization so your agent can message you on Feishu or Lark. Handy the first time you bind an account. CX Codex +1 1,400installs worldcup Pulls FIFA World Cup 2026 schedules, live match scores, and runs a prediction game with points. Useful for tracking fixtures and placing bets directly in chat. CX Codex +1 1,400installs upbit Use the upbit CLI through an agent to inspect market data and manage exchange accounts and orders. Private commands need API credentials. CX Codex +1 1,300installs x402 This skill configures x402 payments for an HTTP service and helps an agent pay for other agents’ services. Use it for per-call charges, subscriptions, or timed free promotions. CX Codex +1 1,200installs skill-manager Search, install, and list skills from local and shared registries through one agent workflow. Use it when a task needs a skill you do not have yet. CX Codex +1 386installs market-structure-ta This skill reads price structure, liquidity, and entry areas from ticker data. Use it when a technical market review needs levels, a stop, and an R:R plan. CX Codex +1 332installs defillama Hands your agent DefiLlama data: protocol TVL, stablecoin yields, fees, DEX and bridge volume. Useful for comparing protocols or tracking where capital moves. CX Codex +1 329installs tokenomist This skill reads token unlocks, emissions, and allocation data. Use it when checking supply pressure or vesting events before a trade. CX Codex +1 302installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor