Official Prem documentation. Use when onboarding to Prem, understanding the platform architecture, managing API keys, handling errors/rate limits, billing, or looking up raw API reference endpoints. Triggers on Confidential API docs, quickstart, API keys, billing, rate limits, attestation, security model, enclave architecture, Prem platform, prem.io, prem labs, prem, prem ai.
Installation
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Official Prem documentation. Use when onboarding to Prem, understanding the platform architecture, managing API keys, handling errors/rate limits, billing, or looking up raw API reference endpoints. Triggers on Confidential API docs, quickstart, API keys, billing, rate limits, attestation, security model, enclave architecture, Prem platform, prem.io, prem labs, prem, prem ai.
Prem Documentation
Official docs for the Prem confidential AI platform. Load specific links below based on the task at hand.
Install official skill: npx skills add docs.prem.io --yes.
Starting a new Prem integration from scratch — covers API key setup, env vars (PREM_API_KEY, PROXY_URL, ENCLAVE_URL), SDK install, local proxy, and first streaming chat completion
Loading Prem docs into an AI coding agent or editor (Claude Code, Cursor, Windsurf) via npx skills add https://docs.prem.io/skill.md, or discovering all doc pages via llms.txt
Creating or rotating API keys (Dashboard → Developers → API Keys), setting IP restrictions (IPv4/IPv6/CIDR), applying least-privilege scopes, or understanding org-level key ownership
Debugging error responses — JSON body has status, error, support_id fields; 400 bad request, 401 auth, 403 missing scope, 404 not found, 429 rate limited, 500/503 server errors; save support_id for support tickets (kept 1 week)
Comparing model costs (pay-as-you-go): chat input/output per 1M tokens, audio per minute; or choosing between Explorer (free, shared), Developer (dedicated), Enterprise (air-gapped) tiers
GET /developers/api_keys/scopes — full list of available scopes: api_key.create/read/update/delete, users.read/update, chats.completion, tools.execute, files.encrypted.create/read, audio.transcription/translation
POST /developers/api_keys/requests — paginated request history with filters: api_key_id, date range, status (success/failed), HTTP method, search string; default limit 50
Working auth example: createRvencClient with apiKey + clientKEK, pre-generating encryption keys once via generateEncryptionKeys() for reuse across requests, custom requestTimeoutMs / maxBufferSize
Understanding the DX: encryption is invisible in app code, TypeScript SDK vs local proxy for other languages, standard OpenAI-style errors and rate limits