Skip to main content

OpenClaw

OpenClaw is an open-source CLI coding agent that supports multiple LLM providers. This guide shows you how to configure it to use KiosAPI.

Prerequisites

  • Node.js 18+ or Bun
  • A KiosAPI API key (starts with sk-)

Installation

Install OpenClaw globally:
Or with Bun:
Verify the installation:

Configuration

1. Set environment variables

OpenClaw reads the API key and base URL from environment variables. Windows (PowerShell):
macOS / Linux: Add to ~/.bashrc or ~/.zshrc:
Reload your shell:

2. Config file

Create or edit ~/.openclaw/config.json:
Replace sk-xxx with your actual KiosAPI key.
You can use any OpenAI-compatible model available on KiosAPI. Check the models list for available options.

Usage

Interactive mode

Direct question

Specify a model

Troubleshooting

Authentication Error

  • Verify your API key is set correctly and starts with sk-
  • Ensure apiBase in the config file matches the environment variable

Connection Error

  • Confirm the base URL is https://kiosapi.com/v1 (with /v1)
  • Check your network and firewall settings

Verify Your Setup

Need Help?