SDK Support
Oso for Agents integrates with agent frameworks, languages and internal systems at the tool and execution boundary. Integrations capture executed actions and associated context for observability, authorization, and audit.LangChain (Production Ready)
Language: TypeScriptFramework version: LangChain pre-1.0 (0.x)
Package:
@osohq/langchain Documentation: https://www.npmjs.com/package/@osohq/langchain This integration is production-ready. It captures LangChain agent events via a callback handler, and sends them to Oso for monitoring, debugging, and security analysis.
Installation
npm install @osohq/langchain
Or with yarn:yarn add @osohq/langchain
Quickstart
Configuration
Environment Variables Set these in your environment: Required: Your Oso API keyOSO_AUTH=your-oso-api-key
Optional: Custom Oso endpoint (defaults to https://cloud.osohq.com) OSO_URL=https://cloud.osohq.com
Constructor Parameters
More Resources
For details on error handling, logging, configuration options, and end-to-end usage examples for the @osohq/langchain callback (including how it fails gracefully on network issues, supports custom loggers, handles multi-agent sessions, and provides full TypeScript types) refer to the external package documentation. That page is the authoritative source for implementation specifics, example agents, metadata and user attribution, runtime requirements, and licensing, and should be consulted if you need deeper operational or integration guidance beyond what’s covered in our core technical docs.Google Genkit (Under Active Development)
Language: TypeScriptStatus: In progress Genkit support is under active development.
Framework-Agnostic
Python (Production Ready)
Language: PythonStatus: Inline documentation available
Scope: Framework-agnostic agent instrumentation
Inline documentation: https://github.com/osohq/oso-service/blob/87e1377381549a708022d4c0567fbc1f1d4fd646/clients/python/src/oso_cloud/for_agents.py Python support is available via inline documentation in the Oso Cloud client and is suitable for production use.
Prototyped (Not Productionized Yet)
The following integrations have been explored, and in private-preview:- Mastra
- LangChain (Python)
- Cloudflare
- Vercel