When working with SAP AI Core, understanding how to add a Git repository in SAP AI Core is essential right from the start. SAP AI Core is designed purely as an execution layer, it does not store your application code, training scripts, or workflow templates. Instead, SAP AI Core dynamically pulls everything it needs from an external Git repository at runtime.
This design ensures that your AI workloads remain modular, version-controlled, and easy to update without redeploying infrastructure. By keeping your code in a Git platform like GitHub or GitLab, you gain full control over changes, collaboration, and history tracking of SAP AI Core templates.
In short, your Git repository becomes the single source of truth, while SAP AI Core focuses on securely executing and scaling your AI workloads based on that source. In short, learning how to add a Git repository in SAP AI Core is the foundation for building scalable, production-ready AI systems.
💡 Think of SAP AI Core as the execution engine, while your Git repo is the source of truth.
Prerequisites to Add a Git Repository in SAP AI Core
Before you start, make sure you have everything ready:
- An active SAP Business Technology Platform account with AI Core provisioned
- Access to SAP AI Launchpad
- A repository on GitHub or GitLab (Private repo recommended)
- A Personal Access Token (PAT) with
repopermissions
⚠️ Common Pitfall: Many users try to use their GitHub password — this will NOT work. You must use a PAT.
Step-by-Step Implementation
Follow the below step-by-step implementation tutorial
Step 1: Generate Your Personal Access Token (PAT)
In GitHub:
- Go to Settings
- Navigate to Developer Settings
- Click Personal Access Tokens
- Generate a new token
- Select required scopes:
repo- (optional)
workflow
💡 Copy and save this token securely — you won’t see it again!
Step 2: Open SAP AI Launchpad
- Log in to SAP AI Launchpad
- Select Git Repositories under AI Core Administration

Step 3: Add a Git Repository
📌 Navigation Path:
AI Core Administration → Git Repositories → Add
Fill in the details:
- URL → HTTPS URL of your repo
👉 Example:https://github.com/your-username/your-repo.git - Name → Use a clear alias
👉 Example:my-ai-project-repo - Username → Your Git username
- Access Token → Paste your PAT here (not your actual password)

Step 4: Verify the Connection
Once added:
- Check the Status
- It should display: “Completed”

🎉 That means SAP AI Core can now securely pull your code!
Conclusion
Learning how to add a Git repository in SAP AI Core is a foundational step in building scalable AI solutions. Once connected, you unlock version control, automation, and seamless deployment of AI workflows.
Next Steps
Create an application to sync your folders.
FAQ: How to Add a Git Repository in SAP AI Core
Q1. Can I use SSH instead of HTTPS?
No, SAP AI Core currently supports HTTPS with PAT authentication.
Q2. Why is my Git repository failing to connect?
Usually due to invalid PAT or missing permissions.
Q3. Is GitHub or GitLab better for SAP AI Core?
Both work equally well; choose based on your workflow.
External Resources
To deepen your understanding, explore these official resources:
These links provide deeper technical insights and best practices.








