# Dca bot

> Dca bot is an open-source agent skill for finance and payments. Dollar-cost-averages a fixed amount into a token on a schedule, with optional price gates. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Uniswap/uniswap-ai/tree/main/packages/plugins/uniswap-trading-tools/skills/dca-bot
- **Repository:** https://github.com/uniswap/uniswap-ai
- **GitHub stars:** 236
- **License:** MIT
- **Skill name:** dca-bot
- **Collection:** https://github.com/Uniswap/uniswap-ai
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-12-02

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Uniswap/uniswap-ai/tree/HEAD/packages/plugins/uniswap-trading-tools/skills/dca-bot)
- [Asks for: Read, Write, Edit, Glob, Grep, Bash(npm:*), Bash(npx:*), Bash(curl:*)…](https://github.com/Uniswap/uniswap-ai/blob/HEAD/packages/plugins/uniswap-trading-tools/skills/dca-bot/SKILL.md)
- [License: MIT](https://github.com/Uniswap/uniswap-ai/tree/HEAD/packages/plugins/uniswap-trading-tools/skills/dca-bot)

## Features

- **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

## Install

### Claude Code

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):

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

Or copy only this skill to `~/.claude/skills/dca-bot`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/dca-bot` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/dca-bot` to use it in every project:

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Index bot](https://ai-powered.com/skills/index-bot): Index bot is an open-source agent skill for finance and payments.
- [Configurator](https://ai-powered.com/skills/configurator): Configurator is an open-source agent skill for finance and payments.
- [Swap planner](https://ai-powered.com/skills/swap-planner): Swap planner is an open-source agent skill for finance and payments.
- [Swap tokens](https://ai-powered.com/skills/swap-tokens): Swap tokens is an open-source agent skill for finance and payments.
- [Agent wallet policy](https://ai-powered.com/skills/agent-wallet-policy): Agent wallet policy is an open-source agent skill for finance and payments.
- [Copy trade](https://ai-powered.com/skills/copy-trade): Copy trade is an open-source agent skill for finance and payments.
- [Swap integration](https://ai-powered.com/skills/swap-integration): Swap integration is an open-source agent skill for finance and payments.
- [Unify balance](https://ai-powered.com/skills/unify-balance): Unify balance is an open-source agent skill for finance and payments.

---
Source: https://ai-powered.com/skills/dca-bot
