# sap-cloud-sdk-ai-python

Integrates sap-ai-sdk-gen into Python applications. It guides foundation model connectivity and request orchestration via SAP AI Core.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 545 installs · ★ 475
- Author: secondsky
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/secondsky/sap-skills/tree/HEAD/plugins/sap-cloud-sdk-ai-python/skills/sap-cloud-sdk-ai-python/SKILL.md
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/skills/sap-cloud-sdk-ai-python

## What it does

This skill directs coding agents through the `sap-ai-sdk-gen` package, which replaces the deprecated `generative-ai-hub-sdk`. The import statement remains unchanged as `gen_ai_hub`. It provides structured patterns for OpenAI and Amazon Bedrock models proxied through SAP AI Core.

Authentication relies on SAP credentials. The SDK reads client IDs and service secrets from environment variables, local config files, or platform bindings. Local testing fails immediately if the target SAP BTP tenant lacks active model deployments.

Pip extras determine feature availability. Installing the base package only provides OpenAI support, while LangChain and additional model providers require extras such as `[all]` or `[google, amazon]`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-cloud-sdk-ai-python -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/sap-cloud-sdk-ai-python/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/sap-cloud-sdk-ai-python/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-cloud-sdk-ai-python -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/sap-cloud-sdk-ai-python/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-cloud-sdk-ai-python -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/sap-cloud-sdk-ai-python/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install secondsky/sap-skills sap-cloud-sdk-ai-python
```

2. **Manually: put the files in place**
- File: `.github/skills/sap-cloud-sdk-ai-python/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-cloud-sdk-ai-python -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/secondsky/sap-skills --path plugins/sap-cloud-sdk-ai-python/skills/sap-cloud-sdk-ai-python
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/sap-cloud-sdk-ai-python/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add secondsky/sap-skills --skill sap-cloud-sdk-ai-python -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/secondsky/sap-skills/tree/HEAD/plugins/sap-cloud-sdk-ai-python/skills/sap-cloud-sdk-ai-python/SKILL.md

## When to use it
- connect OpenAI and Bedrock models through SAP AI Core proxy
- migrate code from deprecated `generative-ai-hub-sdk` to `sap-ai-sdk-gen`
- configure data masking and prompt templates in Orchestration Service
- generate vector embeddings using SAP BTP foundation models

## Example prompts
- Write an OpenAI chat completion snippet using `sap-ai-sdk-gen` and environment variable auth
- Help me migrate this script from `generative-ai-hub-sdk` to `sap-ai-sdk-gen`
- Create an Orchestration Service pipeline with prompt templating and content filtering

## Similar
- [langchain-python](https://affpapa.org/en/nevibecode/rules/langchain-python.md) — rule · ★ 40418
- [aws-sdk-python-usage](https://affpapa.org/en/nevibecode/skills/aws-sdk-python-usage.md) — skill · 7800 installs
- [hf-cloud-python-env-setup](https://affpapa.org/en/nevibecode/skills/hf-cloud-python-env-setup.md) — skill · 548 installs
- [langchain-architecture](https://affpapa.org/en/nevibecode/skills/langchain-architecture.md) — skill · 13150 installs
- [sentry-python-sdk](https://affpapa.org/en/nevibecode/skills/sentry-python-sdk.md) — skill · 2600 installs
- [langgraph-python-quickstart](https://affpapa.org/en/nevibecode/skills/langgraph-python-quickstart.md) — skill · 5200 installs

From the same set: [secondsky/sap-skills](https://affpapa.org/en/nevibecode/by/secondsky/sap-skills.md) — 20 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
