Skip to main content
This page works with Claude Code, Codex, Cursor and other agents that read skills. It covers three steps:
  1. Install the plugin.
  2. Build and test your first flow in the failure sandbox.
  3. Optionally, let the agent check your live account.
The plugin runs on your machine. The source is public at globalstack-oss/agent-toolkit.

Integration skill

One playbook per flow, the code checklist, and the formats and fields by topic.

Reference code

Tested TypeScript for retries, lost responses, crash recovery and webhook handling. Copy it unchanged.

Failure sandbox

A local copy of the API that fails on purpose: lost response, provider error, rate limit, missing or forged webhooks. It never calls the real API.

Account checks

Read-only checks with your own key: is the route open, is access approved, is a webhook active, what is in your wallets.

Install

Run these inside Claude Code, not in a terminal:
The scripts need Node 20 or later, whatever language your app is in.

Build your first flow

You donโ€™t need a Global Stack account or an API key to build and test an integration.
1

Start your agent in your app's folder

Install the plugin first (above).
2

Name your flow

Ask for the flow you need, with the direction, currency, country and rail. For example:
The agent reads the playbook for that flow and writes the code on top of the reference code.
3

Test every failure

The agent starts the failure sandbox, points your app at it, and runs the flow once per fault. Each run ends with a report. Fix the app until no report has a warning.

Optional: check your live account

With a key, the agent can also check your account. These checks only send GET requests, so create an API key with the Viewer role in the dashboard and set it in the terminal you start the agent from:
Never paste a key into the chat or a project file. Give the agent a Viewer key only: the plugin has no tool that moves money.
There is no test mode. The first call with a key that can move money moves real money. Make that call yourself, through your app, after every sandbox fault passes and someone other than the agent has read the code that moves money. The pluginโ€™s README lists the going-live steps.

Updates

The plugin checks for a new version each time it runs and tells you once when your copy is older.