actions-cli
Invoke the Actions SDK from the shell - query assets/chains, derive an EOA address from a PRIVATE_KEY env var, read balances. Use when an agent needs to…
от ethereum-optimism★ 31 звезда на GitHub
Установить actions-cli в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Actions CLI - Agent Skill
Invocation
Spawn the actions binary as a subprocess. Always pass --json (as
the first flag) - the default output is human-readable and not intended
for parsing. With --json, stdout is a bare JSON document on success
and stderr is the error envelope on failure.
actions --json assets
actions --json wallet balance --chain base-sepolia
Command tree
actions assets- configured asset allowlist.actions chains- configured chain shortnames + IDs.actions lend markets [--asset <symbol>] [--chain <name> | --chain-id <id>]- lending markets across configured providers, optionally filtered to one asset and/or one chain (no wallet).actions lend market --market <name>- inspect one market by name (no wallet).actions borrow markets [--collateral <symbol>] [--borrow-asset <symbol>] [--chain <name> | --chain-id <id>]- borrow markets across configured providers, optionally filtered (no wallet).actions borrow market --market <name>- inspect one borrow market by name (no wallet).actions borrow position --market <name> --wallet <address>- read any wallet's borrow position (noPRIVATE_KEYrequired).actions swap markets [--chain <name>]- all swap markets across configured providers (no wallet).actions swap market --pool <id> --chain <name>- inspect one swap market by pool id (no wallet).actions swap quote --in <symbol> --out <symbol> (--amount-in <n> | --amount-out <n>) --chain <name> [--provider uniswap|velodrome] [--slippage <pct>]- best quote (no wallet).actions swap quotes ...- same flag set; returns every provider's quote sorted best price first.actions ens address <name>- forward-resolve an ENS name to its address on Ethereum mainnet (no wallet).actions ens name <address>- reverse-resolve an address to its primary ENS name, orname: nullwhen none is set (no wallet).actions ens info <input>- fetch the standard ENS profile text records for a name or address (no wallet).actions wallet address- EOA address derived fromPRIVATE_KEY.actions wallet balance [--chain <name> | --chain-id <id>]- balances per chain + asset; the chain flags are mutually exclusive.actions wallet lend position --market <name>- the wallet's current balance and shares in a market.actions wallet lend open --market <name> --amount <n> [--approval-mode <exact|max>]- supply assets to a market.--approval-mode maxapproves max-uint to amortise approvals across future supplies (default:exact).actions wallet lend close --market <name> (--amount <n> | --max)- withdraw assets. Pass--maxto withdraw the wallet's full balance in the market (the CLI fetches the position first; subject to inflight interest accrual).actions wallet borrow position --market <name>- the wallet's current collateral, debt, LTV, and health factor in a borrow market.actions wallet borrow open --market <name> --borrow-amount <n> [--collateral-amount <n>] [--approval-mode <exact|max>]- borrow against existing or newly-deposited collateral. No--max(open path only accepts strict amounts).actions wallet borrow close --market <name> [--borrow-amount <n> | --borrow-max] [--collateral-amount <n> | --collateral-max]- unwind a position. Each leg is independently xor'd; the borrow leg is required.--*-maxresolves on-chain at dispatch time so interest-accrual dust doesn't strand the position.actions wallet borrow deposit-collateral --market <name> --amount <n> [--approval-mode <exact|max>]- top up collateral without changing debt.actions wallet borrow withdraw-collateral --market <name> (--amount <n> | --max)- pull collateral back without touching debt.actions wallet borrow repay --market <name> (--amount <n> | --max) [--approval-mode <exact|max>]- repay debt without touching collateral.actions wallet swap execute --in <symbol> --out <symbol> (--amount-in <n> | --amount-out <n>) --chain <name> [--provider uniswap|velodrome] [--slippage <pct>]- execute a swap on the resolved chain.
Wallet model
The CLI derives a viem LocalAccount from PRIVATE_KEY and wraps it in
an EOA-backed Actions wallet via
actions.wallet.toActionsWallet(localAccount). No smart wallet, no
bundler, no ERC-4337 UserOps - the signer pays gas directly. For the
demo, fund the EOA with testnet ETH on Base Sepolia.
Resolution rules
- Assets - pass the
metadata.symbolvalue from the allowlist (e.g.USDC_DEMO,OP_DEMO,ETH). Case-insensitive. Runactions --json assetsfor the current list. - Chains - pass a shortname (
base-sepolia,op-sepolia) via--chain, or a numeric id via--chain-id(mutually exclusive). Both flags accept a comma-separated list to scope the SDK fan-out to multiple chains. Runactions --json chainsfor the current list. - Markets (lend) - pass the market
namefrom the config allowlis
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- .prettierignore
- CHANGELOG.md
- README.md
- package.json
- src/__mocks__/anvilAccounts.ts
- src/commands/actions/assets.ts
- src/commands/actions/borrow/index.ts
- src/commands/actions/borrow/market.ts
- src/commands/actions/borrow/markets.ts
- src/commands/actions/borrow/position.ts
- src/commands/actions/chains.ts
- src/commands/actions/ens/address.ts
- src/commands/actions/ens/index.ts
- src/commands/actions/ens/info.ts
- src/commands/actions/ens/name.ts
- src/commands/actions/lend/index.ts
- src/commands/actions/lend/market.ts
- src/commands/actions/lend/markets.ts
- src/commands/actions/swap/index.ts
- src/commands/actions/swap/market.ts
- src/commands/actions/swap/markets.ts
- src/commands/actions/swap/options.ts
- src/commands/actions/swap/quote.ts
- src/commands/actions/swap/quotes.ts
- src/commands/actions/swap/util.ts
- src/commands/wallet/address.ts
- src/commands/wallet/balance.ts
- src/commands/wallet/borrow/close.ts
- src/commands/wallet/borrow/deposit-collateral.ts
- src/commands/wallet/borrow/index.ts
- src/commands/wallet/borrow/open.ts
- src/commands/wallet/borrow/position.ts
- src/commands/wallet/borrow/repay.ts
- src/commands/wallet/borrow/requireBorrowCapability.ts
- src/commands/wallet/borrow/runBorrowAction.ts
- src/commands/wallet/borrow/withdraw-collateral.ts
- src/commands/wallet/index.ts
- src/commands/wallet/lend/close.ts
- src/commands/wallet/lend/index.ts
- src/commands/wallet/lend/open.ts
FAQ
Что делает скилл actions-cli?
Invoke the Actions SDK from the shell - query assets/chains, derive an EOA address from a PRIVATE_KEY env var, read balances. Use when an agent needs to interact with the Actions SDK without embedding TypeScript.
Как установить скилл actions-cli?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл actions-cli запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…