Every computer use agent needs credentials that control who can send requests and how much they can spend. The Coasty Computer Use API uses API keys, scope-based permissions, and a prepaid USD wallet. You read the key from COASTY_API_KEY, attach it as X-API-Key, and top up a wallet where 1 credit equals $0.01.
How it works
You store your API key in the COASTY_API_KEY environment variable. Every request to the Coasty API includes the header X-API-Key: <key>. The server validates the key, checks scope permissions, and subtracts credits from your wallet. A 401 error means the key is invalid. A 403 error means the key lacks the required scope. A 402 error means the wallet has insufficient credits. The wallet is a prepaid USD balance, so you control spend and avoid surprises.
# Set the key from the environment
export COASTY_API_KEY="your-key-here"
# Example request that validates your key
# Replace the URL with the actual base URL from the docs
# curl -X GET https://coasty.ai/v1/runs \
# -H "X-API-Key: $COASTY_API_KEY" \
# -H "Content-Type: application/json"
Scopes gate access
- Keys are scoped to specific permissions such as runs, prediction, ground, parse, and workflows.
- A key with insufficient scope returns a 403 INSUFFICIENT_SCOPE error.
- You can create multiple keys with different scopes for teams or environments.
- Scopes are enforced server-side regardless of how the key is used.
Read the key from COASTY_API_KEY, attach it as X-API-Key, and control spend with a prepaid USD wallet.
Where this beats brittle automation
Traditional automation relies on brittle selectors and fixed APIs that break when layouts change. The Coasty Computer Use API lets agents see the screen and act like humans, but you still control who can drive those agents and how much they cost. Scope-based keys prevent accidental misuse, and the prepaid wallet caps spending. This combination gives you safety at scale, not just a more powerful agent.
Start building secure, cost-controlled computer use agents today. Get your API key and wallet at https://coasty.ai/developers.
Want to see this in action?
View Case Studies