Get your API key
Create a key at platform.hcompany.ai/settings/api-keys. It’s shown only once, so store it securely and keep it server-side. The key is scoped to your organization: everything you create with it is private to that org.Set it as
HAI_API_KEY in your environment. Raw HTTP sends it as a bearer token in the Authorization header. The CLI and SDKs pick it up automatically.Run a pre-built agent
h/web-surfer-flash is a pre-built agent with a cloud browser already attached. Give it an imperative task. The CLI and SDK calls create the session and block until the agent finishes. Over raw HTTP, create the session, wait for it to finish (long-poll changes), then read latest_answer off the session.Customize
A pre-built agent covers many tasks. When you need your own browser settings, model, or instructions, register an environment and an agent once, then reference them byid and name in every session.
Create an environment
An environment is what your agent sees and acts on. Register a web browser in
visual mode, where the agent works from screenshots and clicks by coordinates, and give it an id the agent will reference.Create an agent
Create an agent that references the environment by
id. Agents you create have no prefix; H’s pre-built agents and environments use the reserved h/ namespace (like h/web-surfer-flash and h/browser). The optional instructions shape how the agent behaves on every run:Run a session
Watch it live
Open the H Platform to see your sessions: watch a running one step by step, or scrub a finished run to replay the full trajectory. See Agent View for details.
Next steps
Agents
Reusable configurations: pre-built agents and how to create your own.
Environments
The surfaces your agent perceives and acts on.
Skills
Reusable instruction fragments you can attach to agents.
Sessions
The session lifecycle and how to interact with a running agent.