Skip to main content
The Hyperbolic toolkit provides AI agents with the ability to rent GPU compute resources, manage instances, and execute commands on remote servers through the Hyperbolic platform.

Available Tools

The HyperbolicToolkit includes the following tools:

Rent Compute

Rent GPU instances on the Hyperbolic platform

Manage GPUs

Check available GPUs, monitor status, and terminate instances

SSH Access

Connect to instances via SSH and execute remote commands

Billing

Check balance and spending history

Setup

Installation

pip install hyperbolic-langchain

Configuration

Set your Hyperbolic API key as an environment variable:
export HYPERBOLIC_API_KEY="your-api-key"
Get your API key from the Hyperbolic Dashboard

Quick Start

Initialize the Toolkit

from hyperbolic_langchain.agent_toolkits import HyperbolicToolkit
from hyperbolic_langchain.utils import HyperbolicAgentkitWrapper

# Initialize the wrapper
hyperbolic = HyperbolicAgentkitWrapper()

# Create the toolkit
hyperbolic_toolkit = HyperbolicToolkit.from_hyperbolic_agentkit_wrapper(hyperbolic)

# Get all available tools
tools = hyperbolic_toolkit.get_tools()

for tool in tools:
    print(tool.name)

Use with LangChain Agent

from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent

# Initialize LLM
llm = ChatOpenAI(model="gpt-4")

# Create agent with Hyperbolic tools
agent_executor = create_react_agent(llm, tools)

# Run the agent
events = agent_executor.stream(
    {"messages": [("user", "Rent me a GPU with 8 GPUs")]},
    stream_mode="values",
)

for event in events:
    event["messages"][-1].pretty_print()

Tool List

The toolkit provides these core tools:

Compute Management

  • rent_compute - Rent GPU instances from the marketplace
  • get_available_gpus - List all available GPU machines
  • get_gpu_status - Check status of your rented GPUs
  • terminate_compute - Terminate a rented instance

Remote Access

  • ssh_connect - Connect to a GPU instance via SSH
  • remote_shell - Execute commands on connected instances

Billing Tools

  • get_current_balance - Check your Hyperbolic credit balance
  • get_spend_history - View detailed spending history
  • link_wallet_address - Link a crypto wallet for payments
The Hyperbolic toolkit can create, modify, and delete compute instances. Always review agent actions before execution in production environments.

Security Considerations

The HyperbolicToolkit has access to:
  • Creating and terminating compute instances
  • Accessing servers via SSH
  • Executing arbitrary commands on remote servers
  • Managing billing and payments
See Security Best Practices for more information on securing your agents.

Pricing

All GPU prices on the Hyperbolic platform are shown in cents per hour. For example, a price of 500 means $5.00 per hour.

Next Steps

Rent Compute

Learn how to rent GPU instances

Manage GPUs

Monitor and control your instances

SSH Access

Connect and execute remote commands

API Reference

View full API documentation

Build docs developers (and LLMs) love