Get Started
TypeScript Quickstart
Get started with Humanlayer using TypeScript
HumanLayer has a dedicated client for TypeScript.
Installation
Install the HumanLayer TypeScript SDK:
Basic Example
Here’s a minimal example using HumanLayer with OpenAI - the full code is available in the humanlayer-ts repo.
Configuration
Set your API keys in your environment:
Basic TS Agent
This basic example shows how to use HumanLayer as a tool in an OpenAI chat completion loop.
Contact Channels
Configure how approvals are requested:
Next Steps
- Explore some of the Typescript examples in the humanlayer repo
- Learn about require_approval
- Configure contact channels
- Explore response options
- See more TypeScript examples
- Try the complete quickstart example