Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Agent Zero

Configure Agent Zero to use TensorX models.


Overview

Agent Zero is an open-source agent framework. It uses LiteLLM for model providers and can connect to TensorX as a custom provider.


Prerequisites

  • Python 3.10+ and Node.js 22+

  • Docker (recommended for sandboxed execution)

  • A TensorX API key (sign up here)


Installation

git clone https://github.com/agent0ai/agent-zero.git
cd agent-zero
pip install -r requirements.txt

Configuration

Option 1: Web UI Setup

  1. Start Agent Zero:

  2. Open http://localhost:50001 in your browser

  3. Go to Settings and configure:

Setting
Value

Chat Model Provider

Other OpenAI compatible

Chat Model Name

An ID returned by GET /v1/models

Chat Model API Key

Your TensorX API key

Chat Model API Base

https://api.tensorx.ai/v1

  1. Set the Utility Model to a TensorX model ID as well

Option 2: Environment Variables

Create a .env file in the Agent Zero root directory:


Model selection

Call GET /v1/models with your TensorX API key and use one of the returned IDs. If the integration depends on a capability or token limit, query GET /v1/model/info before selecting the model. See Models for examples.


Usage

Start the web UI and interact with your agent:

Agent Zero will autonomously:

  • Break down complex tasks into steps

  • Create and execute tools

  • Search the web for information

  • Write and run code

  • Self-correct when errors occur


Troubleshooting

Agent Not Responding

  1. Check your API key and base URL in Settings

  2. Verify your TensorX credit balance at app.tensorx.ai

  3. Check the terminal logs for error messages

Tool Execution Errors

Ensure Docker is running if you're using sandboxed execution mode.


See Also

Last updated

Was this helpful?