Three steps to first transaction.
01 — 02 — 03
01 / Install
Python 3.10+.
$
pip install git+https://github.com/velodrome-finance/sugar-sdk.git@v0.4.2
02 / Add RPC
Required for writes — public defaults are rate-limited.
$
export SUGAR_RPC_URI_8453=https://base.drpc.org
03 / Run it
Use the CLI yourself — or let an agent do the work.
Run it yourself
CLI
Writes emit unsigned tx JSON. Your signer broadcasts.
python -m sugar quote \
--chain=8453 \
--from-token=usdc --to-token=eth \
--amount=100 --use-decimals
Or let your agent
Claude Code
Skill at .claude/skills/sugar/,
auto-discovered. Reads state, builds tx — never sees a
key.
$ cd sugar-sdk && claude
> Quote 100 USDC to ETH on Aerodrome,
then build the swap tx for 0xYou.
Quick preview...
Full reference →
/home/agent