cURL
curl --request PUT \ --url https://app.opencomputer.dev/v1/agents/{agentId}/secrets/{key} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "value": "<string>", "allowed_hosts": [ "<string>" ] } '
{ "key": "ANTHROPIC_API_KEY", "allowed_hosts": ["api.anthropic.com"], "set_at": "2026-04-09T10:30:00Z" }
oc agent create --secret KEY=VALUE