# Aicore SDK js

> Aicore SDK js is an open-source agent skill for developer tools. Generates TypeScript and JavaScript code for calling SAP GenAI Hub models. 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-js
- **Repository:** https://github.com/sap/ai-skills-library
- **GitHub stars:** 162
- **License:** Apache-2.0
- **Skill name:** aicore-sdk-js
- **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 produce working TypeScript or JavaScript starter code for SAP GenAI Hub on SAP AI Core, using the @sap-ai-sdk package family. It covers the main entry points: orchestration-based chat and streaming, the native OpenAI SDK surface, LangChain integration, and separate packages for document grounding, managed prompt templates, batch LLM jobs, tabular prediction and Context Registry resources.

The skill sets working conventions for the agent. It asks for the framework, use case, runtime and deployment ID before generating code, and points to the SAP AI Core console for existing deployments. It favors passing messages directly to the orchestration client and warns against the older v1 configuration shape. Generated code carries comments on configuring AI Core credentials, and the skill reads from a bundled reference file and compile-checked templates, with an optional documentation lookup tool when one is available.

It expects Node.js 22 or later with native ESM support, npm or bun, and an SAP AI Core service key. Lifecycle management of deployments is out of scope and must be handled in the AI Core console. Java requests are routed to a separate sibling skill.

## When your agent uses it

> Generate working TypeScript/JavaScript boilerplate for SAP GenAI Hub using @sap-ai-sdk/orchestration, @sap-ai-sdk/foundation-models, @sap-ai-sdk/openai (native OpenAI SDK), @sap-ai-sdk/langchain (LangChain), @sap-ai-sdk/document-grounding (RAG), @sap-ai-sdk/prompt-registry, @sap-ai-sdk/llm-batch (batch jobs), @sap-ai-sdk/rpt (tabular prediction), or @sap-ai-sdk/context-registry (data destinations, tabular artifacts, scenario configurations). WHEN: user asks for TypeScript, JavaScript, Node.js, or JS/TS code that calls a GenAI Hub model, wants a TypeScript starter project, asks how to use @sap-ai-sdk in their app, asks how to use LangChain (JS/TS) with SAP AI Core, or wants JS/TS for RAG/document-grounding, prompt templates, batch LLM jobs, tabular (RPT) prediction, or managing data destinations / tabular artifacts / scenario configurations via the Context Registry. DO NOT USE FOR: Java code — use `aicore-sdk-java`.

## What it can access

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

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

## Features

- **Orchestration chat and streaming:** Templates for chat completions and streamed responses through the orchestration client.
- **LangChain integration:** Examples wiring SAP AI Core models into LangChain chat clients for JavaScript and TypeScript.
- **Native OpenAI SDK surface:** Patterns for using the OpenAI client interface on SAP GenAI Hub, including embeddings and Responses API.
- **Document grounding for RAG:** Starter code for retrieval-augmented generation with the document grounding package.
- **Managed prompt templates:** Code for working with reusable prompt templates stored in the prompt registry.
- **Batch and tabular prediction:** Templates for batch LLM jobs and SAP-RPT-1 tabular prediction.

## Good for

- Write a TypeScript chat app that calls a GenAI Hub model
- Set up a Node.js streaming endpoint backed by SAP AI Core
- Add LangChain chat to a JavaScript project using SAP AI Core
- Build a document question-answering flow with grounding in TypeScript
- Run a batch of LLM requests from a Node.js script

## 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-js`:

```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-js &&
cp -R "$tmp/plugins/aicore-skills/skills/aicore-sdk-js" ~/.claude/skills/aicore-sdk-js &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/aicore-sdk-js` 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-js &&
cp -R "$tmp/plugins/aicore-skills/skills/aicore-sdk-js" ~/.agents/skills/aicore-sdk-js &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/aicore-sdk-js` 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-js &&
cp -R "$tmp/plugins/aicore-skills/skills/aicore-sdk-js" ~/.cursor/skills/aicore-sdk-js &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/aicore-sdk-js` 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-js
```

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

### VS Code

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

```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-js &&
cp -R "$tmp/plugins/aicore-skills/skills/aicore-sdk-js" ~/.copilot/skills/aicore-sdk-js &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/aicore-sdk-js` 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-js` into your agent's skills folder as `aicore-sdk-js`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Aicore SDK js need before it generates code?

It asks for the framework, use case, runtime and model with deployment ID, and for OpenAI models it asks whether you plan to switch models later.

### Does Aicore SDK js manage AI Core deployments?

No. Creating, listing and deleting deployments is not covered; use the SAP AI Core console or your admin.

### Which Node.js version is required?

Node.js 22 or later with native ESM support, plus npm or bun.

### Will Aicore SDK js generate Python code?

No. It is JavaScript and TypeScript only and points Python users to the SAP AI SDK documentation.

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

Copy the skill folder from GitHub to ~/.claude/skills/aicore-sdk-js to use it in all your projects, or to .claude/skills/aicore-sdk-js 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 js run scripts?

Yes. It runs TypeScript 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 js?

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 js?

The closest alternatives to Aicore SDK js are Aicore SDK java, Aicore SDK python, Developing genkit js, Angular developer and Azure AI projects ts.

## Where this comes from

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

## Alternatives

- [Aicore SDK java](https://ai-powered.com/skills/aicore-sdk-java): Aicore SDK java is an open-source agent skill for developer tools.
- [Aicore SDK python](https://ai-powered.com/skills/aicore-sdk-python): Aicore SDK python 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.
- [Angular developer](https://ai-powered.com/skills/angular-developer): Angular developer is an open-source agent skill for developer tools.
- [Azure AI projects ts](https://ai-powered.com/skills/azure-ai-projects-ts): Azure AI projects ts is an open-source agent skill for cloud and infrastructure.
- [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.
- [Chat SDK](https://ai-powered.com/skills/chat-sdk): Chat SDK 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.

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