Skip to content
Skill

Copy trade

Mirrors a chosen wallet's token swaps into your wallet within set guardrails

Copy trade is an open-source agent skill for finance and payments. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
236
Last commit
License
MIT
Listing updated

Similar skills

About Copy trade

Copy Trade watches a target wallet on one EVM chain and replicates its swaps into the follower's wallet. It scans the leader's transactions in bounded block ranges, decodes the pool Swap logs in each one, and collapses multi-hop routes into a single net intent so the same trade is not bought twice.

Before any mirror goes out, each intent is checked against a chain filter, an asset allowlist, per-trade and per-period spend caps, the follower's balance, and a record of already mirrored transactions. The actual quoting, approvals, signing and broadcast are handed off to the Uniswap swap-integration skill, and the state file is written after every intent so a crash does not cause a repeat trade.

The skill defaults to confirm mode, where each mirror swap is shown for approval before broadcast. Autonomous mode requires spend caps, a token allowlist, a dry run and a kill switch. It relies on viem-integration for chain reads and expects a Uniswap Trading API setup and an operator-configured chain template.

When your agent uses it

This skill should be used when the user asks to "copy trades from" a wallet, "mirror a wallet", "follow this address", set up "copy trading", "track and replicate a trader", or mirror another account's swaps bounded by guardrails. Watches a target wallet and mirrors its trades, filtered by chain, asset match, position size, and the follower's own portfolio state.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (18 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the uniswap-trading-tools plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add Uniswap/uniswap-ai
/plugin install uniswap-trading-tools@uniswap-ai

Or copy only this skill to ~/.claude/skills/copy-trade:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/copy-trade &&
cp -R "$tmp/packages/plugins/uniswap-trading-tools/skills/copy-trade" ~/.claude/skills/copy-trade &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/copy-trade inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/copy-trade to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/copy-trade &&
cp -R "$tmp/packages/plugins/uniswap-trading-tools/skills/copy-trade" ~/.agents/skills/copy-trade &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/copy-trade inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/copy-trade to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/copy-trade &&
cp -R "$tmp/packages/plugins/uniswap-trading-tools/skills/copy-trade" ~/.cursor/skills/copy-trade &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/copy-trade inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/Uniswap/uniswap-ai.git --path packages/plugins/uniswap-trading-tools/skills/copy-trade

Or copy the folder to ~/.gemini/skills/copy-trade yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/copy-trade:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/copy-trade &&
cp -R "$tmp/packages/plugins/uniswap-trading-tools/skills/copy-trade" ~/.copilot/skills/copy-trade &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/copy-trade inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git

Then copy uniswap-ai/packages/plugins/uniswap-trading-tools/skills/copy-trade into your agent's skills folder as copy-trade. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Leader transaction scanning
Finds the target wallet's transactions in bounded block ranges and decodes the swap logs inside them.
Route collapsing
Merges chained multi-hop legs into one net intent so intermediate tokens are not bought and resold.
Guardrail checks
Filters trades by chain, token allowlist, position size and follower balance before anything is sent.
Idempotent mirroring
Records each mirrored leader transaction so restarts or overlapping runs never duplicate a trade.
Confirm or autonomous modes
Defaults to asking before each swap, with an autonomous option gated by spend caps and a kill switch.
Delegated execution
Hands quoting, approvals and signing to the swap-integration and viem-integration skills.

Good for

  • Mirror swaps from a specific wallet address onto my own wallet within a daily spend limit
  • Follow a trader's token buys on Ethereum and ask me to confirm each one first
  • Set up a copy trading watcher that skips trades in tokens outside my allowlist
  • Replicate a leader's multi-hop swap as one net trade without buying intermediate tokens

Copy trade FAQ

What does the skill need to run?

It needs the swap-integration and viem-integration skills, a target-chain template for chain and contract addresses, and operator-set spend caps. Wallet keys must come from environment variables.

How does Copy trade decide when to mirror a trade?

It runs on a scheduler about every 5 minutes, reads new leader transactions since a stored cursor, applies guardrails to each swap and mirrors only those that pass.

Can Copy trade run without asking me each time?

Only in autonomous mode, which needs a per-run and per-period spend cap, a per-mirror cap, a token allowlist, a dry run and a kill switch. The default is confirm mode.

How does Copy trade avoid copying the same trade twice?

Each mirrored leader transaction hash is saved to the state file right after it resolves, and any intent already recorded is skipped.

How do I install Copy trade in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/copy-trade to use it in all your projects, or to .claude/skills/copy-trade in one project. Or install the uniswap-trading-tools plugin, which includes it: /plugin marketplace add Uniswap/uniswap-ai, then /plugin install uniswap-trading-tools@uniswap-ai.

Does Copy trade run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Copy trade?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Copy trade?

The closest alternatives to Copy trade are Swap integration, Swap planner, Index bot, Swap tokens and Dca bot.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from Uniswap/uniswap-ai

  1. Guides your agent through configuring Uniswap CCA token auction contract parameters

    • Open source
    • 236 GitHub stars
    • Finance and payments
  2. Guides an agent through deploying Uniswap CCA auction contracts via the factory

    • Open source
    • 236 GitHub stars
    • Developer tools
  3. Plans Uniswap liquidity positions and generates pre-filled position deep links

    • Open source
    • 236 GitHub stars
    • Finance and payments
  4. Plans token swaps on Uniswap across chains and builds pre-filled swap links

    • Open source
    • 236 GitHub stars
    • Finance and payments
  5. Guides an agent to scaffold Uniswap v4 hook contracts via the OpenZeppelin Wizard MCP

    • Open source
    • 236 GitHub stars
    • Developer tools
  6. Security checklists and vulnerability patterns for building Uniswap v4 hooks safely

    • Open source
    • 236 GitHub stars
    • Developer tools