{"id":"097a037b-4fd1-41df-aba0-d2d23c937828","slug":"ak-skill-cloud-api-invocation-2","name":"cloud-api-invocation","description":"Generate Python code for invoking Claude in cloud/remote environments using Anthropic's Messages API. Handles API authentication, SDK setup, basic/multi-turn conversations, model selection, and tool use/function calling patterns. Trigger keywords: Anthropic API, Claude API, Messages API, invoke Claude programmatically, Claude SDK, remote Claude, cloud Claude execution, API integration, programmatic tool calling, function calling, tool use API, Python SDK","canonicalUrl":"https://xpersona.co/skill/ak-skill-cloud-api-invocation-2","sourceUrl":"https://github.com/ak-skill/cloud-api-invocation","homepage":null,"source":"GITHUB_OPENCLEW","vendor":{"slug":"ak-skill","label":"Ak Skill","url":"https://github.com/ak-skill/cloud-api-invocation"},"protocols":["OPENCLEW"],"capabilities":["copy","you","call"],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":null,"freshnessAt":"2026-04-15T03:16:45.320Z","freshnessLabel":"Apr 15, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Apr 15, 2026"},{"label":"Vendor","value":"Ak Skill"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"Unpublished"}],"factsPreview":[{"factKey":"docs_crawl","category":"integration","label":"Crawlable docs","value":"6 indexed pages on the official domain","href":"https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar","sourceUrl":"https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar","sourceType":"search_document","confidence":"medium","observedAt":"2026-04-15T05:03:46.393Z","isPublic":true},{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Ak Skill","href":"https://github.com/ak-skill/cloud-api-invocation","sourceUrl":"https://github.com/ak-skill/cloud-api-invocation","sourceType":"profile","confidence":"medium","observedAt":"2026-04-15T03:16:45.460Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://xpersona.co/api/v1/agents/ak-skill-cloud-api-invocation-2/contract","sourceUrl":"https://xpersona.co/api/v1/agents/ak-skill-cloud-api-invocation-2/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-04-15T03:16:45.460Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://xpersona.co/api/v1/agents/ak-skill-cloud-api-invocation-2/trust","sourceUrl":"https://xpersona.co/api/v1/agents/ak-skill-cloud-api-invocation-2/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["Trust evidence available"],"agentCard":{"name":"cloud-api-invocation","description":"Generate Python code for invoking Claude in cloud/remote environments using Anthropic's Messages API. Handles API authentication, SDK setup, basic/multi-turn conversations, model selection, and tool use/function calling patterns. Trigger keywords: Anthropic API, Claude API, Messages API, invoke Claude programmatically, Claude SDK, remote Claude, cloud Claude execution, API integration, programmatic tool calling, function calling, tool use API, Python SDK","source":"GITHUB_OPENCLEW","sourceId":"github:1136047535","repository":"https://github.com/ak-skill/cloud-api-invocation","documentation":"https://xpersona.co/skill/ak-skill-cloud-api-invocation-2/agent/ak-skill-cloud-api-invocation-2","protocols":["OPENCLEW"],"capabilities":["copy","you","call"],"languages":["typescript"],"install":{"command":"git clone https://github.com/ak-skill/cloud-api-invocation.git","ecosystem":"git"},"examples":[{"kind":"example","language":"python","snippet":"import anthropic\nimport os\n\n# Initialize the Anthropic client (uses ANTHROPIC_API_KEY env var by default)\nclient = anthropic.Anthropic()\n\n# Make a basic API call\nmessage = client.messages.create(\n    model=\"claude-sonnet-4-5-20250929\",\n    max_tokens=1024,\n    messages=[\n        {\"role\": \"user\", \"content\": \"Hello, Claude! What can you help me with today?\"}\n    ]\n)\n\n# Extract and print the response text\nprint(message.content[0].text)"},{"kind":"example","language":"python","snippet":"import anthropic\n\nclient = anthropic.Anthropic()\n\n# Use streaming for real-time response output\nwith client.messages.stream(\n    model=\"claude-sonnet-4-5-20250929\",\n    max_tokens=1024,\n    messages=[{\"role\": \"user\", \"content\": \"Explain quantum computing in simple terms.\"}]\n) as stream:\n    for text in stream.text_stream:\n        print(text, end=\"\", flush=True)\n\nprint()  # Newline after streaming completes"}]}}