# vision-agent

> vision-agent is an agent framework for developer tools. Prompt-to-code agent that builds vision apps from an image and a text prompt. It is available on CLI, API, Linux, macOS and Windows.

- **Kind:** Agent
- **Platforms:** CLI, API, Linux, macOS, Windows
- **Repository:** https://github.com/landing-ai/vision-agent
- **GitHub stars:** 5,300
- **License:** Apache-2.0
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Give VisionAgent a text prompt and an image, and it chooses suitable vision models and writes runnable Python for the task. Under the hood it plans the steps, generates code along with a test case, and keeps revising the code until that test passes. The output is saved as a file you can run directly.

The library also exposes its vision tools for direct use in your own scripts. Functions such as object detection, segmentation and video tracking can be called from Python, with helpers for loading, overlaying and saving images and video. A local chat webapp in the examples folder lets you try prompting without writing a script first.

The agent relies on Anthropic and Google language models for planning and code generation, so you supply your own keys for those services alongside a VisionAgent API key. It suits developers and researchers who want to prototype visual AI features quickly.

## Features

- **Prompt to working code:** Turns a text request and an image into a Python script that performs the described vision task.
- **Self-testing generation:** Creates a test case for the generated code and iterates until the test passes.
- **Reusable vision tools:** Exposes object detection, segmentation and tracking functions for direct use in scripts.
- **Video support:** Extracts frames and timestamps from video and tracks objects across frames.
- **Swappable language models:** Lets you change the planner and coder models through a configuration file.
- **Local chat webapp:** Includes an example chat interface for trying prompts locally.

## Good for

- Count objects such as cans or people in a photo
- Track people or items across a video and get their timestamps
- Generate a starting script for an image analysis feature
- Prototype a visual AI app before committing to a production pipeline

## FAQ

### Which API keys do I need?

A VisionAgent API key, plus an Anthropic key and a Google API key for the language models that plan and write the code.

### What Python version is required?

Python 3.9 or higher.

### How do I install vision-agent?

Install the vision-agent package with uv add vision-agent or pip install vision-agent.

### What are the best alternatives to vision-agent?

The closest alternatives to vision-agent are most-capable-agent-system-prompt, devika, voice-lab, smolagents and py-vectara-agentic.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [most-capable-agent-system-prompt](https://ai-powered.com/agents/most-capable-agent-system-prompt): most-capable-agent-system-prompt is an open-source agent framework for ai models and llm tooling.
- [devika](https://ai-powered.com/agents/devika): devika is an open-source agent for coding.
- [voice-lab](https://ai-powered.com/agents/voice-lab): voice-lab is an open-source agent framework for ai models and llm tooling.
- [smolagents](https://ai-powered.com/agents/smolagents): smolagents is an open-source agent framework for multi-agent frameworks.
- [py-vectara-agentic](https://ai-powered.com/agents/py-vectara-agentic): py-vectara-agentic is an open-source agent framework for developer tools.
- [Instrukt](https://ai-powered.com/agents/instrukt): Instrukt is an open-source agent for ai models and llm tooling.
- [agency](https://ai-powered.com/agents/agency-2): agency is an open-source agent framework for developer tools.
- [llama-cpp-agent](https://ai-powered.com/agents/llama-cpp-agent): llama-cpp-agent is an open-source agent framework for developer tools.

---
Source: https://ai-powered.com/agents/vision-agent
