Agent H
Agent H is Hedge Layer's native terminal agent. It connects to the same MCP endpoint as other agents, discovers its tools, and keeps the conversation and agent loop on your machine.
Your Hedge Layer token provides access to both MCP tools and hosted inference. You do not need an OpenAI API key or a separate model-provider account.
Agent H runs the conversation and tool loop locally. It sends prompts and tool results through Hedge Layer to the model provider; financial tools use the shared MCP endpoint.
Install Agent H
Requires Node.js 22.19 or newer and an interactive terminal. Install the published Agent H package from npm:
npm install -g @hedge-layer/agent-hConnect and start
Create a personal API token in account settings, then start Agent H with that token:
export AGENT_H_HEDGE_LAYER_TOKEN='<your-hedge-layer-token>'
agent-h doctor
agent-hThe MCP endpoint defaults to https://hedgelayer.ai/mcp. Set AGENT_H_HEDGE_LAYER_MCP_URL for another Hedge Layer environment; Agent H uses that same server for inference.
Use Agent H 0.3.2 or newer for this single-token setup. Run the install command again to upgrade an older version.
Approve execution locally
A read token is sufficient for public data. Submitting or canceling an order requires a token with read and trade scopes.
Agent H asks before a tool can change external state. Signed venue requests are loaded locally during approval; credentials and signatures are kept out of the model context and saved conversation.
You can use another MCP client or write your own agent. Agent H has no exclusive access to the service.