# agency

> agency is an open-source agent framework for developer tools. Go library for building LLM and generative AI apps with OpenAI bindings. It is available on API and Self-hosted.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** API, Self-hosted
- **Repository:** https://github.com/neurocult/agency
- **GitHub stars:** 516
- **License:** MIT
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## Features

- **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

## 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.

## Alternatives

- [agent-sdk-go](https://ai-powered.com/agents/agent-sdk-go): agent-sdk-go is an open-source agent framework for developer tools.
- [smolagents](https://ai-powered.com/agents/smolagents): smolagents is an open-source agent framework for multi-agent frameworks.
- [typedai](https://ai-powered.com/agents/typedai): typedai is an open-source agent framework for multi-agent frameworks.
- [llama-cpp-agent](https://ai-powered.com/agents/llama-cpp-agent): llama-cpp-agent is an open-source agent framework for developer tools.
- [future-agi](https://ai-powered.com/agents/future-agi-2): future-agi is a freemium open-source agent for ai models and llm tooling.
- [adk-go](https://ai-powered.com/agents/adk-go): adk-go is an open-source agent framework for ai models and llm tooling.
- [agentfield](https://ai-powered.com/agents/agentfield): agentfield is an open-source agent framework for multi-agent frameworks.
- [DemoGPT](https://ai-powered.com/agents/demogpt): DemoGPT is an open-source agent framework for ai models and llm tooling.

---
Source: https://ai-powered.com/agents/agency-2
