Get your API key
Every request needs an H API key. Create one at platform.eu.hcompany.ai/settings/api-keys: click Create key and give it a name. The key is shown once, so store it securely and keep it server-side. See Authentication for details.Pick a language below; it applies to every code block on this page.
Create an environment
An environment is what your agent sees and acts on. Register a web browser in
visual mode (it works from screenshots and clicks by coordinates) and give it an id the agent will reference. V1 ships the Browser; Desktop is in What’s next.Create an agent
Create an agent that references the environment by
id and reuse it across sessions. The optional instructions shape how it behaves on every run; here they enforce grounding, verification, and honesty:Run a session
Launch a session against
web-navigator and describe the task in plain language. Google Flights is a good test: its date picker, filters, and result cards only respond to real clicks, so the agent has to drive the page.The client’s run_session / runSession method creates the session and blocks until it finishes, returning the final answer. Raw HTTP has no equivalent, so you create the session and long-poll changes until it reaches a terminal state.Prefer a UI? Watch the run live or replay it afterward in the H Platform.
Next steps
Agents
Reusable configurations: built-in agents and how to create your own.
Environments
The surfaces your agent perceives and acts on. Browser today; more in What’s next.
Skills
Reusable instruction fragments you can attach to agents.
Sessions
The session lifecycle and how to interact with a running agent.