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

Goose

Use TensorX models with Goose β€” the open-source, on-machine AI agent by Block (Square).


Overview

Goose is an open-source AI agent built by Block (formerly Square) that runs on your machine and helps with coding, DevOps, and general development tasks. With 32K+ GitHub stars and support for declarative custom providers, it's easy to connect to TensorX.


Prerequisites

  • macOS, Linux, or Windows

  • A TensorX API key (sign up here)


Installation


Configuration

Option 1: Using OpenAI-Compatible Provider

Set environment variables and configure Goose:

Then configure via the CLI:

When prompted:

  1. Choose OpenAI Compatible as the provider

  2. Enter https://api.tensorx.ai/v1 as the base URL

  3. Enter your model name: z-ai/glm-5.1

Option 2: Settings File

Edit ~/.config/goose/config.yaml:


Use Case
Model
Why

Coding ⭐

z-ai/glm-5.1

Best coding performance, strong reasoning

Reasoning

deepseek/deepseek-r1-0528

Complex analysis and planning

Functions

minimax/minimax-m2.5

Function calling, reasoning

Vision

moonshotai/kimi-k2.5

Image understanding, large context

General

deepseek/deepseek-chat-v3.1

Balanced performance and cost

Fast

minimax/minimax-m2

Quick responses, cost-sensitive


Usage

Start an interactive session:

Or run a one-shot command:

Goose can:

  • Read and edit files in your project

  • Run terminal commands

  • Search your codebase

  • Connect to external tools via MCP extensions


Troubleshooting

Model Not Responding

  1. Verify your API key: echo $TENSORX_API_KEY

  2. Test the connection:

Provider Not Found

Run goose configure to reconfigure your provider settings.


See Also

Last updated

Was this helpful?