About Agent CLI
Agent CLI is an MCP server published by Nunchi-trade in the Developer Tools category: sealGate stdio MCP server that runs the Codex and OpenCode coding-agent CLIs headlessly on the local machine. Conduid read 24 tools from its source: account, agent_memory, apex_run, apex_status, builder_status, emergency_close_all and 18 more. No package is published for it, so it installs from a source checkout.
The repository has 522 stars and 134 forks, is licensed MIT, and its last commit was on 8 Jul 2026. Conduid has no tagged release on record for it. It passes 3 of the 5 static checks Conduid ran on the repository; it does not pass Dependencies pinned and No dynamic code execution. Its topics include opencode, coding-agent, sealgate and stdio.
Install
git clone https://github.com/Nunchi-trade/agent-cliTools (24)
accountGet Hyperliquid account state (balances, positions).| Parameter | Type | Description |
|---|---|---|
| mainnet | boolean |
agent_memoryRead agent memory — learnings, param changes, market observations.| Parameter | Type | Description |
|---|---|---|
| event_type | string | Filter by type (param_change, reflect_review, notable_trade, judge_finding, session_start, session_end) |
| limit | integer | Max events to return (default 20) |
| query_type | string | "recent" for latest events, "playbook" for accumulated knowledge |
apex_runStart APEX multi-slot orchestrator. WARNING: places real orders unless mock.| Parameter | Type | Description |
|---|---|---|
| confirmed | boolean | Explicit confirmation for hosted gateway sessions that require it. |
| mainnet | boolean | Use mainnet |
| max_ticks | integer | Stop after N ticks |
| mock | boolean | Use mock data |
| preset | string | Strategy preset (default, conservative, aggressive) |
apex_statusGet APEX orchestrator status (slots, positions, daily PnL).builder_statusGet builder fee configuration status.emergency_close_allEMERGENCY kill-switch: cancel ALL open orders and market-close ALL| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | Must be true to execute. |
| mainnet | boolean | Use mainnet instead of testnet. |
funding_hedge_backtestBacktest BTCSWP funding hedge cashflows from a local CSV.| Parameter | Type | Description |
|---|---|---|
| asset | string | Underlying perp exposure. BTC is deployed today. |
| csv_path * | string | Local CSV path readable by the MCP server process. |
| perp_notional_usd | number | Absolute perp notional in USD. |
| perp_side | string | Perp exposure side — "long" or "short". |
| vol_multiplier | number | BTCSWP hedge multiplier. Default 15 means 1/15 notional. |
funding_hedge_infoDescribe deployed funding hedge profiles and input schemas.funding_hedge_proposePropose a read-only BTCSWP funding-rate hedge.| Parameter | Type | Description |
|---|---|---|
| asset | string | Underlying perp exposure. BTC is deployed today. |
| funding_apr | number | Annualized funding APR. Accepts 0.42 or 42 for 42%. |
| funding_rate_8h | number | 8h funding rate as a decimal, used if funding_apr is omitted. |
| perp_notional_usd | number | Absolute perp notional in USD. |
| perp_side | string | Perp exposure side — "long" or "short". |
| vol_multiplier | number | BTCSWP hedge multiplier. Default 15 means 1/15 notional. |
funding_ratesCurrent (hourly) funding rates for all perps, or a single coin.| Parameter | Type | Description |
|---|---|---|
| coin | string | Optional coin/instrument filter (e.g. ETH or ETH-PERP). |
| mainnet | boolean | Use mainnet instead of testnet. |
judge_reportGet latest Judge evaluation — signal quality, false positive rates, recommendations.obsidian_contextRead trading context from Obsidian vault — watchlists, market theses, risk preferences.order_statusLook up the status of a single Hyperliquid order by its oid.| Parameter | Type | Description |
|---|---|---|
| mainnet | boolean | Use mainnet instead of testnet. |
| oid * | string | The order id. |
radar_runRun opportunity radar — screen HL perps for trading setups.| Parameter | Type | Description |
|---|---|---|
| mock | boolean |
reflect_runRun REFLECT performance review — analyze trades and generate report.| Parameter | Type | Description |
|---|---|---|
| since | string | Start date for analysis (YYYY-MM-DD). Default: since last report. |
run_strategyStart autonomous trading with a strategy. WARNING: places real orders unless dry_run/mock.| Parameter | Type | Description |
|---|---|---|
| confirmed | boolean | Explicit confirmation for hosted gateway sessions that require it. |
| dry_run | boolean | Log decisions without placing orders |
| instrument | string | Trading instrument (default: ETH-PERP) |
| mainnet | boolean | Use mainnet instead of testnet |
| max_ticks | integer | Stop after N ticks (None = run forever) |
| mock | boolean | Use mock data instead of real API |
| strategy * | string | Strategy name (e.g., engine_mm, avellaneda_mm, momentum_breakout) |
| tick | integer | Seconds between ticks (default: 10) |
schedule_cancelArm Hyperliquid's dead-man's switch: cancel ALL open orders this many| Parameter | Type | Description |
|---|---|---|
| clear | boolean | Clear any scheduled cancel instead of setting one. |
| mainnet | boolean | Use mainnet instead of testnet. |
| seconds_from_now | integer | Seconds until auto-cancel (HL minimum ~5). |
setup_checkValidate environment — SDK, keys, network, builder fee.statusShow current positions, PnL, and risk state.strategiesList all available trading strategies with descriptions and default parameters.tradePlace a single manual order. WARNING: executes a real trade with real funds.| Parameter | Type | Description |
|---|---|---|
| confirmed | boolean | Explicit confirmation for hosted gateway sessions that require it. |
| instrument * | string | Trading pair (e.g., ETH-PERP, BTC-PERP, VXX-USDYP) |
| mainnet | boolean | Use mainnet instead of testnet |
| side * | string | Order side — "buy" or "sell" |
| size * | number | Order size in contracts |
trade_journalRead trade journal — structured position records with entry/exit reasoning.| Parameter | Type | Description |
|---|---|---|
| date | string | Filter by date (YYYY-MM-DD). Default: all dates. |
| limit | integer | Max entries to return (default 20) |
wallet_autoCreate a new wallet non-interactively (agent-friendly).| Parameter | Type | Description |
|---|---|---|
| confirmed | boolean | Explicit confirmation for hosted gateway sessions that require it. |
| save_env | boolean | Save credentials to ~/.hl-agent/env for auto-detection (default: True) |
wallet_listList saved encrypted keystores.Security checks
Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 4.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- !No dynamic code executionScanned 171 source files and found 1 call to eval or shell execution, in cli/commands/hedge.py:426. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- 9 callscli/commands/hedge.py:523, cli/commands/hedge.py:426, cli/commands/setup.py:140
- Outbound network calls
- 13 callsadapters/pear_adapter.py:74, cli/commands/setup.py:196, cli/hl_adapter.py:184
- Writes or deletes files
- 38 callscli/api/status_reader.py:372, cli/commands/apex.py:216, cli/commands/hedge.py:67
- Lockfile
- None in the repository
Pattern matches on the source text of 171 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 4.0K words, fetched 4 days ago. The original in the repository is authoritative.
Read full README