Run OpenClaw on Your Own OpenAI Subscription: Onboarding, the Gateway, and a First End-to-End Task
Beginner · 30 minutes · 5 tasks, checked automatically · 100 points
In this foundational lab you will install OpenClaw, wire it to your own OpenAI account (the key is already in your environment), start the gateway control plane, register a custom tool, and run a complete end-to-end task that proves the agent can reason with a real frontier model. Every step builds on the last, so work through them in order.
What you’ll learn
- Install OpenClaw globally and confirm the CLI is on the PATH
- Initialise a project directory and configure the gateway to use your OpenAI gpt-4o subscription
- Start the OpenClaw gateway and verify it is listening and healthy
- Register a custom echo tool and confirm it appears in the tool registry
- Run a complete end-to-end single-turn task through the gateway and capture the agent response to a file
How this lab works
- Start the lab: One click starts a sandbox with a local model and the agent’s toolbox: no API key and no token bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work inspects the agent, its config and its output, and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: Locally, against a model on your computer: no API key, no tokens
- Model: gpt-4o
- Open source: github.com/openclaw/openclaw
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- A LearnXops Agent Playground sandbox of type 'hosted' has been created
- Your OpenAI API key has been added in the Playground — it is available as OPENAI_API_KEY inside the toolbox
Topics: openclaw, openai, gpt-4o, gateway, tools, agents, nodejs, hosted, end-to-end
Create a free account to start this lab.
Keep going
- Install OpenClaw and Bring Up the Gateway
- Run OpenClaw Fully Offline with a Local Ollama Model
- Walk the OpenClaw Workspace: Sessions, History, and Resuming Conversations
- Configure Hermes: Persistent Model, Backend, and Tool Defaults
- Hermes Agent: Install, Diagnose, and First-Run Setup Against a Local Model
- Tour the Hermes Toolsets: Discover, Enable, and Trace Tool Calls