
agency
Go library for building LLM and generative AI apps with OpenAI bindings
agency is an open-source agent framework for developer tools. It is available on API and Self-hosted.
- Pricing
- Open source
- Platforms
- API, Self-hosted
- GitHub stars
- 516
- Last commit
- Language
- Go
- License
- MIT
Similar agents
About agency
Agency is a Go library that wraps language models, image, and speech APIs behind a small set of interfaces. Developers define their own operations and chain them into processes, with interceptors available to observe each step as it runs.
The library ships OpenAI bindings for text completion, text-to-image, text-to-speech, and speech-to-text, and it can point at any OpenAI-compatible endpoint. Prompts and message history are handled through simple Go types, so a chat loop takes only a few lines of code.
It suits Go developers who want to add AI features to services or command-line tools without bringing in a Python or JavaScript stack. Autonomous agent support is listed on the roadmap rather than complete, so it is best treated as a foundation for building agent-style workflows.
What it does
- Pure Go design
- Written entirely in Go with static typing, so it fits into existing Go codebases without extra runtimes.
- OpenAI API bindings
- Covers text completion, text-to-image, text-to-speech, and speech-to-text through OpenAI-compatible endpoints.
- Composable operations
- Custom operations implement a simple interface and can be chained into multi-step processes.
- Step interceptors
- Hooks let you observe or inspect each stage of a process as it executes.
- Function calling support
- Supports external function calls so models can invoke code you provide.
- Image-to-text operations
- Lets models take image input and produce text output in the same pipeline.
Good for
- Adding a chat assistant to a Go backend or command-line tool
- Building retrieval-augmented generation pipelines with the bundled examples as a starting point
- Generating images or speech from text inside an existing Go service
- Transcribing audio with speech-to-text calls in a Go workflow
Pricing
Open source
Free and open source under MIT; no paid plans listed.
agency FAQ
How do I install Agency?
Run go get github.com/neurocult/agency to add the package to a Go module.
Which model providers are supported?
OpenAI bindings are included, and any OpenAI-compatible API can be used. Support for other providers is on the roadmap.
What license is agency released under?
Agency is released under the MIT license.
Is agency free?
Yes. agency is open source, so you can use and self-host it for free.
What are the best alternatives to agency?
The closest alternatives to agency are agent-sdk-go, smolagents, typedai, llama-cpp-agent and future-agi.
Where this comes from
- Description: written from the project's README.



