Install

API shape

The Java wrapper mirrors the same runtime ideas as the TypeScript and Go SDKs: create an agent, send a prompt, stream events, then close the session.

Permissions

Permission events follow the same pattern as the other wrappers.

What to expect

  • Builder-based configuration via `AgentOptions` and `SDKConfig`.
  • Stream callbacks over sealed event types in `Events`.
  • Low-level `AutohandSDK` access when you need direct runtime control.
  • Higher-level `Agent` access for everyday application code.

Next steps

  • Use [Quickstart](/docs/agent-sdk/quickstart.html) for the cross-language setup flow.
  • Compare with the Go SDK or TypeScript SDK for the same patterns in other languages.