Documentation Index
Fetch the complete documentation index at: https://docs.openserv.ai/llms.txt
Use this file to discover all available pages before exploring further.
Watch: Build a custom agent.
Build a Custom Agent
Starter repository
To get going fast, clone the Hyperliquid demo agent:- GitHub: basic-agent
capabilities/test.ts: basic “hello world” style capability you can use to verify that the agent server is wired correctly.trade.ts: more advanced Hyperliquid trading capability (documented in more detail under the Hyperliquid Agent example).
agent-server.ts: boots the server and registers capabilities in a modular way.
Environment variables
Create a.env file with:
OPENSERV_API_KEYis created from the Your Agents → Create Secret Key action after registering the agent via Add Agent.PORTis optional (defaults to 7380).HYPERLIQUID_TESTNETcontrols whether the agent talks to mainnet or testnet.

