# Aicore SDK python

> Aicore SDK python is an open-source agent skill for developer tools. Generates Python code for calling LLMs, batch jobs and RAG through SAP AI Core. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/SAP/ai-skills-library/tree/main/plugins/aicore-skills/skills/aicore-sdk-python
- **Repository:** https://github.com/sap/ai-skills-library
- **GitHub stars:** 162
- **License:** Apache-2.0
- **Skill name:** aicore-sdk-python
- **Collection:** https://github.com/SAP/ai-skills-library
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill helps an AI coding agent write Python starter code for SAP GenAI Hub using the sap-ai-sdk-gen package. It covers native clients for OpenAI, Google Gemini and Amazon Bedrock, LangChain wiring, and higher-level services such as batch LLM jobs, prompt templates, document grounding and tabular prediction with SAP RPT models.

The skill routes requests to bundled reference material and per-feature code templates before generating anything, so the agent works from a verified API floor rather than memory. It asks for missing details such as the target use case, model and deployment ID, and points the agent to companion skills for deployment management, credential setup, or JavaScript and Java output.

Users need Python 3.11 or newer, uv, and an SAP AI Core service key configured through the aicore CLI or AICORE_* environment variables.

## When your agent uses it

> Generate working Python boilerplate for SAP GenAI Hub using sap-ai-sdk-gen: native OpenAI proxy, Google GenAI, Amazon Bedrock, LangChain (init_llm/ ChatOpenAI / ChatBedrock / ChatGoogleGenerativeAI), tool calling, structured output, async, multi-turn, embeddings, batch jobs, prompt registry, document grounding / RAG, tabular prediction (SAP RPT classification & regression). WHEN: user asks for Python code, a Python starter project, how to use GenAI Hub in Python, how to connect LangChain to AI Core, how to use OpenAI (GPT), Google Gemini, or Amazon Bedrock models via SAP AI Core, how to run batch LLM jobs on SAP AI Core (BatchService), how to manage prompt templates or orchestration configs on SAP AI Core (Prompt Registry / OrchestrationService), how to generate embeddings or do RAG / document grounding through SAP AI Core, how to use the Responses API via the GenAI Hub proxy, how to do tabular prediction with SAP RPT models on SAP AI Core (classification & regression) via RPTClient. DO NOT USE FOR: TypeScrip

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/SAP/ai-skills-library/tree/HEAD/plugins/aicore-skills/skills/aicore-sdk-python)
- [No network calls found in its scripts](https://github.com/SAP/ai-skills-library/tree/HEAD/plugins/aicore-skills/skills/aicore-sdk-python)
- [License: Apache-2.0](https://github.com/SAP/ai-skills-library/tree/HEAD/plugins/aicore-skills/skills/aicore-sdk-python)

## Features

- **Native model clients:** Chat, streaming, tool calling and async calls through the OpenAI, Google GenAI and Bedrock proxies.
- **LangChain integration:** Connects LangChain chat and embedding models to AI Core deployments.
- **Structured output:** Produces Pydantic-typed responses and Responses API examples.
- **Batch LLM jobs:** Runs large sets of model requests through the BatchService.
- **Prompt registry templates:** Creates and manages managed prompt templates and orchestration configs.
- **Document grounding and RAG:** Adds retrieval-augmented generation over documents hosted via AI Core.
- **Tabular prediction:** Runs classification and regression on relational data with SAP RPT models.

## Good for

- Write a Python script that sends a chat request to a GPT model on SAP AI Core
- Build a LangChain agent that uses an AI Core deployed model
- Set up a batch job that processes many prompts through BatchService
- Add document grounding to answer questions from company files
- Run a classification model on a table of records with RPTClient

## Install

### Claude Code

This skill ships in the `aicore-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add SAP/ai-skills-library
/plugin install aicore-skills@ai-skills-library
```

Or copy only this skill to `~/.claude/skills/aicore-sdk-python`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/ai-skills-library.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/aicore-sdk-python &&
cp -R "$tmp/plugins/aicore-skills/skills/aicore-sdk-python" ~/.claude/skills/aicore-sdk-python &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/aicore-sdk-python` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/aicore-sdk-python` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/ai-skills-library.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/aicore-sdk-python &&
cp -R "$tmp/plugins/aicore-skills/skills/aicore-sdk-python" ~/.agents/skills/aicore-sdk-python &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/aicore-sdk-python` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/aicore-sdk-python` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/ai-skills-library.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/aicore-sdk-python &&
cp -R "$tmp/plugins/aicore-skills/skills/aicore-sdk-python" ~/.cursor/skills/aicore-sdk-python &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/aicore-sdk-python` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/SAP/ai-skills-library.git --path plugins/aicore-skills/skills/aicore-sdk-python
```

Or copy the folder to `~/.gemini/skills/aicore-sdk-python` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/aicore-sdk-python`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/ai-skills-library.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/aicore-sdk-python &&
cp -R "$tmp/plugins/aicore-skills/skills/aicore-sdk-python" ~/.copilot/skills/aicore-sdk-python &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/aicore-sdk-python` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/SAP/ai-skills-library.git
```

Then copy `ai-skills-library/plugins/aicore-skills/skills/aicore-sdk-python` into your agent's skills folder as `aicore-sdk-python`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Aicore SDK python generates code?

It asks for the language, use case, model and deployment ID when the user has not supplied them, and it recommends an existing deployment from the lifecycle skill if one is needed.

### Which SDK package does Aicore SDK python use?

It uses sap-ai-sdk-gen with the gen_ai_hub import namespace and avoids the deprecated generative-ai-hub-sdk package.

### Does Aicore SDK python generate JavaScript or Java code?

No. It is limited to Python and hands off TypeScript, JavaScript or Java requests to other skills.

### How do I install Aicore SDK python in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/aicore-sdk-python to use it in all your projects, or to .claude/skills/aicore-sdk-python in one project. Or install the aicore-skills plugin, which includes it: /plugin marketplace add SAP/ai-skills-library, then /plugin install aicore-skills@ai-skills-library.

### Does Aicore SDK python run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Aicore SDK python?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Aicore SDK python?

The closest alternatives to Aicore SDK python are Aicore SDK js, Aicore SDK java, Genai hub tabular orchestration, Sap cloud integration and Developing genkit go.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Aicore SDK js](https://ai-powered.com/skills/aicore-sdk-js): Aicore SDK js is an open-source agent skill for developer tools.
- [Aicore SDK java](https://ai-powered.com/skills/aicore-sdk-java): Aicore SDK java is an open-source agent skill for developer tools.
- [Genai hub tabular orchestration](https://ai-powered.com/skills/genai-hub-tabular-orchestration): Genai hub tabular orchestration is an open-source agent skill for developer tools.
- [Sap cloud integration](https://ai-powered.com/skills/sap-cloud-integration): Sap cloud integration is an open-source agent skill for developer tools.
- [Developing genkit go](https://ai-powered.com/skills/developing-genkit-go): Developing genkit go is an open-source agent skill for developer tools.
- [API AI augmented](https://ai-powered.com/skills/api-ai-augmented): API AI augmented is an open-source agent skill for ai models and llm tooling.
- [Axiom AI](https://ai-powered.com/skills/axiom-ai-charleswiltgen-2): Axiom AI is an open-source agent skill for developer tools.
- [Developing genkit js](https://ai-powered.com/skills/developing-genkit-js): Developing genkit js is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/aicore-sdk-python
