# Building a Hyperliquid AI Agent Trader From Scratch <!-- ref: @content/youtube/all-about-ai/building-a-hyperliquid-ai-agent-trader-from-scratch tags: [AI agents, Claude Code, sub-agents, perpetuals trading, API automation, skills, experiment] version: 2 updated_at: 2026-11-24T06:04:16.422Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=BInXzCGWQmI)** # Building a Hyperliquid AI Agent Trader From Scratch *Synthesized from All About AI, 2026-05-20; speakers are not named in the source.* A solo presenter from the All About AI channel (not named in the transcript) walks through connecting a crypto exchange account to a coding agent and building a set of agent skills around it. ## Core Thesis The presenter argues that a capable coding agent with API access and a few reusable skills can run a repeatable research-to-trade pipeline in a few hours of setup. He frames the project as a learning exercise and a demonstration of agent tooling, not as a plan to make money. ## Key Insights - **Account setup.** Connect a browser wallet, deposit USDC on the Arbitrum network, and add a small amount of ETH for gas. Then create an API wallet with a 90-day authorization. The presenter notes that authorization requires a funded account. - **Credentials and docs.** The API wallet name, address and private key go in a local `.env` file, and the exchange's API documentation is saved in a `docs` folder so the agent can read it. - **Account mode.** Turning off the unified-account setting makes perpetuals (perps) and spot balances separate, so funds can be moved from spot to perps before trading. - **Find-trades skill.** The skill runs a bash `date` command so research is grounded in the current time, then fires six parallel sub-agents to produce three to five intraday setups on a board. - **Research skill.** A second skill takes one idea and researches it with browser automation, Reddit and the Polymarket API. - **Persona filter.** The presenter gave the agent a meme-style trader profile with risk-tolerance scores and asked it to rate each idea against that profile. He excluded the least risky ideas and asked for more complex, multi-leg ones. - **Programmatic execution.** The agent placed a short perpetual position through the API to prove the pipeline. The presenter closed it at once and planned to reschedule the original idea. - **Stated purpose.** He calls it a fun experiment and suggests a fair comparison later, giving Claude Code and Codex the same budget and seeing which agent performs better. ## Actionable Takeaways 1. Keep API credentials in a local `.env` file, and keep the exchange documentation in a `docs` folder the agent can read. 2. Pass the current date into each research run so the agent grounds its analysis in the actual day. 3. Split the pipeline into a discovery skill and a per-idea research skill, and run the research sub-agents in parallel. 4. Before any scheduled run, test the execution path with a minimal order and close it straight away to confirm the pipeline works. 5. To compare coding agents, give each the same fixed budget and the same task. ## Notable Quotes > "I thought it was only cryptocurrency trading, so I wasn't that interested." — the presenter (not named in the source) > "I'm not doing this to like make a lot of money." — the presenter (not named in the source) --- *Related: `@content/youtube/zazencodes/build-your-own-ai-software-factory-with-claude-code` · `@content/web/github/2026-11-25-claude-code-v2-1-332` · `@content/web/github/2026-11-24-builtin-ship-shadows-user-skill` · `@content/web/github/2026-11-17-open-artifact` · `@content/youtube/sean-kochel/opus-4-7-is-insanely-powerful-and-insanely-expensive`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*