Developers
Manage GPUs with the REST API
Read offers, rent GPUs and manage your machines from your own code with the REST API. With MCP your AI assistant finds prices and, only with your approval, rents and manages the machines you choose.
The TypeScript SDK and CLI have been tested as a local package. The package is not publicly released yet; use the existing REST API examples for now.
Local TypeScript SDK usage
Node.js 24+ and the supplied, reviewed local tarball installed in your project are required. No public registry installation or download is available.
import { CoreHuClient } from '@corehu/sdk';
// Requires the supplied LOCAL tarball installed in this project.
const client = new CoreHuClient({ apiKey: process.env.COREHU_API_KEY ?? '' });
const offers = await client.offers();These examples only read data. Supply COREHU_API_KEY outside source code and command arguments.
- Use a
Bearer ck_API key for account operations;cmcp_grants selected machines read-only MCP access for 30 days. - Create a quote with
offerId, then a reservation with itsquoteId. - Only reservation creation requires
Idempotency-Key: reuse the same key and request for a retry, and use a new key for a new reservation. Other endpoint examples do not promise idempotency.
Domain errors use {error, message}; also inspect HTTP status. Customer webhook delivery is not released.