Skip to content
Skill

Dca bot

Dollar-cost-averages a fixed amount into a token on a schedule, with optional price gates

Dca bot is an open-source agent skill for finance and payments. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

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

Similar skills

About Dca bot

This skill runs a recurring buy strategy for an AI coding agent. Each time the host agent's scheduler wakes it, one self-contained run checks whether the current period has already been bought, optionally evaluates a price condition, enforces spend caps and a token allowlist, and then hands the swap to the swap-integration skill. It does not build quotes, approvals or signatures itself.

State is kept in a small JSON file that records the last bought period and the last action taken, so repeated wakes within one period do not double buy. A failed broadcast leaves the period unmarked so a later run can retry. Transfer-restriction reverts are reported rather than retried blindly.

The skill expects a target chain template that supplies chain id, router and Permit2 addresses, and a token source, plus a Trading API setup and viem for accounts and signing. Its default mode asks for confirmation before each broadcast; autonomous mode requires spend caps, an allowlist, a dry run and a kill switch.

When your agent uses it

This skill should be used when the user wants to "dca into" a token, "buy X every day", set up a "recurring buy", "dollar cost average" into an asset, "schedule a buy", or "auto-buy on a dip". Buys a fixed amount into a token on a schedule, optionally only when a condition holds (for example only when ETH is below a price threshold). The host agent's scheduler wakes the skill on a cadence; each wake is one self-contained run.

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 (9 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/dca-bot:

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

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

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/dca-bot 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/dca-bot &&
cp -R "$tmp/packages/plugins/uniswap-trading-tools/skills/dca-bot" ~/.agents/skills/dca-bot &&
rm -rf "$tmp"

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

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/dca-bot 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/dca-bot &&
cp -R "$tmp/packages/plugins/uniswap-trading-tools/skills/dca-bot" ~/.cursor/skills/dca-bot &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/dca-bot 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/dca-bot

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

Gemini CLI docs on skills

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

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

For one project only, put the folder in .github/skills/dca-bot 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/dca-bot into your agent's skills folder as dca-bot. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Recurring buy schedule
Buys a fixed amount once per configured period, such as each UTC day.
Optional price condition
Only buys when a price threshold or similar condition is met, using Uniswap quotes.
Idempotent runs
Records the last bought period so repeated scheduler wakes never double buy.
Spend guardrails
Enforces per-run and per-period spend caps, a token allowlist and a kill switch.
Confirm or autonomous mode
Defaults to asking for approval per transaction, with autonomous mode gated on safeguards.
Delegated swap execution
Passes quoting, approval and swapping to the swap-integration Trading API flow.

Good for

  • Buy a fixed amount of ETH every day
  • Dollar-cost average into a token each week
  • Buy a token only when its price falls below a set level
  • Schedule a recurring purchase with a spend cap

Dca bot FAQ

What does the skill need to run?

It needs a selected target-chain template that provides chain id, router, Permit2 and token source details, plus the swap-integration and viem-integration skills for execution.

Does Dca bot place trades without asking?

By default no. It runs in confirm mode and asks before each broadcast. Autonomous mode is only available when spend caps, a token allowlist, a dry run and a kill switch are all set.

How does Dca bot avoid buying twice in one period?

It stores the last bought period in a JSON state file and skips any run whose period is already recorded as bought.

Does the skill run its own scheduler?

No. The host agent's scheduler or cron wakes it, and each wake is a single run that reads state, acts or skips, and writes state.

How do I install Dca bot in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/dca-bot to use it in all your projects, or to .claude/skills/dca-bot 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 Dca bot 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 Dca bot?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Dca bot?

The closest alternatives to Dca bot are Index bot, Configurator, Swap planner, Swap tokens and Agent wallet policy.

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