Java SDK
Run the Autohand agent loop on the JVM. The Java SDK exposes a builder-style API, sealed event types, and the same permission and streaming model as the other SDKs.
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.