Ferrite Worker sandbox
The public reads are the place to start. get_example returns complete requests together with the reply each one gives, and every one of them is executed by the worker's own tests, so you can design a request and know what to expect before you hold a token. Each run starts a fresh interpreter, and the outbound hosts a run may be lent are public test and data services.
Connect
- Base URL:
https://worker.ferrite.run - MCP server:
https://worker.ferrite.run/mcp - Requests and responses: OpenAPI 3.1 document
Credentials
Reading needs no credential: get_service, get_limits, list_capabilities, list_examples and get_example answer anyone. run_code needs the worker's client token, sent as client_token in the JSON body over HTTP or as the argument of the same name over MCP. Without it nothing runs: over HTTP the answer is 401, and over MCP the call returns a tool result with isError set and the code unauthorized. The token is issued by the operator, and the contact page is where to ask for one. The worker accepts no OAuth token and no Authorization header.
Try a read
Read what this worker is and whether it can run code now. Use it as a health check, or before the first run to learn the engine and where to send requests. Returns the version, the engine, the run endpoint and whether runs are being accepted.
curl -s 'https://worker.ferrite.run/api/service'
Try a write
Run a JavaScript or TypeScript program with only the access this request lends it. Use it when one short program can do the work of many separate calls, or when code from a model has to run safely; read list_capabilities first. Needs the worker's client token. Returns the program's value, its console lines, an exit code and the number of calls it made.
curl -s -X POST 'https://worker.ferrite.run/run/' \
-H 'content-type: application/json' \
-H 'idempotency-key: run_code-1' \
-d '{"client_token":"YOUR_CLIENT_TOKEN","code":"return [3, 4, 5].map((n) => n * n);"}'
The developer guide lists every operation, the error format and the rate limits.