Install
Provider
Provider props are baseUrl, apiKey, fetch, apiPrefix, user, autoConnect, and eventFilter.
Do not ship a Cloud project key in a React bundle. Proxy requests through your backend. Direct Cloud SSE also requires an authorization header, which native browser EventSource cannot set; keep autoConnect={false} unless your application proxy provides authenticated SSE.
Chat
useChat also accepts onChunk, onError, onUpdate, onMissionPreview, onVaultPreview, onOpenFile, onNavigateTo, and onOpenTab. onFinish receives the final text string. setSessionId accepts string | null and returns a promise.
Resource hooks
All create calls must follow the Agent API schemas. For example, tasks require title, description, and assignTo; missions require a JSON-encoded data string.
Mission detail
Mission task mutation methods identify tasks by title.
Sessions
Files
Skills
Schedules
Playbooks
Legacy vault
Use project Connections for new shared API keys, OAuth accounts, and external integrations. Vault hooks remain for compatibility with agent-scoped secrets.
Mission delays
Direct client and connection status
usePolpo does not expose the internal store. Hooks perform initial fetches; hooks backed by the shared store can also react to SSE when a compatible event connection is configured. Use their refetch methods to reconcile after connection gaps.