@useagentstore/solve
v0.1.0
Published
TypeScript SDK for useagentstore.com — CAPTCHA solver for AI agents.
Maintainers
Readme
@useagentstore/solve
TypeScript SDK for solve.agentstore.dev — a CAPTCHA solver built for AI agents.
- Zero dependencies
- Works in Node 20+, Bun, Deno, and modern browsers
- Self-serve signup — no account, no credit card
- Target 95%+ success rate on Cloudflare Turnstile
Install
npm install @useagentstore/solveQuick start
import { SolveClient } from '@useagentstore/solve';
// One-time: sign up (100 free calls)
const { apiKey } = await SolveClient.signup();
// Use the client
const client = new SolveClient({ apiKey });
const result = await client.solveTurnstile({
url: 'https://example.com/login',
sitekey: '0x4AAAAAAA...',
});
if (result.success) {
console.log('token:', result.token);
console.log('solved in', result.solvedInMs, 'ms');
} else {
console.error('failed:', result.error);
}API
new SolveClient(options)
| Option | Type | Default |
|---|---|---|
| apiKey | string | required |
| baseUrl | string | https://api.useagentstore.com |
| timeoutMs | number | 30_000 |
| fetch | typeof fetch | globalThis.fetch |
client.solveTurnstile(params)
Solves a Cloudflare Turnstile challenge. Returns a SolveResult.
| Param | Type | Required |
|---|---|---|
| url | string | yes |
| sitekey | string | yes |
| action | string | no |
| cdata | string | no |
SolveClient.signup(options?)
Static method. Creates a fresh API key with 100 free calls. Safe to call from an autonomous agent.
License
MIT
