The examples below use the current CLI-backed SDK flow where each wrapper starts or controls the Autohand runtime, streams events, and returns a final run result.

1. Choose your language TypeScript

Pick the SDK you want to start with. The install command and first prompt example update to match.

2. Prerequisites

  • Node.js or Bun.
  • The Autohand CLI config in ~/.autohand/config.json.
  • A repo you want the agent to work in.

3. Install the SDK

4. Configure the runtime

The CLI-backed SDKs read provider settings from ~/.autohand/config.json. A minimal OpenRouter config looks like this:

The Swift SDK is provider-native, so you pass the provider directly in code.

5. Run your first prompt

6. Next moves