With NENNA, you can also use your available AI models outside the usual chat interface. This guide shows step by step how to connect NENNA to Visual Studio Code (VS Code) and the Cline extension through the OpenAI-compatible API.
Note on API use
NENNA offers an OpenAI-compatible API that lets you integrate AI models into external applications. This way you use AI models directly in your development environment to write code, analyze existing applications, or get help with development tasks.
An inexpensive AI model can be provided for testing the technical integration. For production use and access to further AI models, a separate contractual agreement is required.
With direct API requests, the automatic PII masking of the NENNA chat interface is not applied.
What you can do with this integration
By connecting NENNA to your development environment, you use AI features directly while programming. For example, you can:
Have code written and improved.
Have existing code analyzed and explained.
Find errors in code and get suggested fixes.
Create documentation for projects.
Break complex development tasks into several steps.
Call the AI models available in NENNA directly from VS Code.
You use the models that are available to you under your API activation. The model permissions and usage limits that apply to your organization are still respected.
Requirements
Before you start, you need:
An active NENNA user account.
Permission to create personal API keys.
Visual Studio Code version 1.85 or later.
The Cline extension for Visual Studio Code.
The address of your NENNA instance, for example
https://unternehmen.nenna.ai.An activated API access.
API access and activation
API use is not automatically part of your NENNA access. There are two ways to use it:
Access | Description |
|---|---|
Test access | Do you want to check whether NENNA can connect to your application? After talking with us, you can test the API with an inexpensive AI model. This lets you set up the connection and check the basic functionality. |
Production use | For permanent or production use of the NENNA API, a separate commercial agreement is required. After activation, all AI models that are available to your organization in NENNA are available. |
Our support team answers questions about API use or activation at [email protected].
Create a personal API key in NENNA
For Visual Studio Code to access your NENNA models, you need a personal API key. It is used to authenticate your requests.
Open the settings
Log in to your NENNA environment.
Click your profile picture at the top right.
Open the settings.
Go to the
Kontosection.
Create an API key
Scroll to the API-Key section. There you can view an existing key or create a new one.
Click
Anzeigento view an existing key. Or chooseNeuen Secret Key erstellen.Copy the API key shown. It usually starts with
sk-.
Treat your API key like a password. Do not share it, and do not store it unprotected in code or in publicly accessible repositories.

API key not available?
If you do not see the API-Schlüssel section, your administrator may have turned the feature off. In that case, contact your NENNA administrator.
Creating personal API keys can be turned on in the relevant system setting. This requires that API use has been enabled for your organization.
Find the API address of your NENNA instance
NENNA provides an OpenAI-compatible API that external applications use to send requests to your available AI models. In all examples, replace unternehmen.nenna.ai with the address of your own NENNA instance.
Use | Address |
|---|---|
General API address |
|
Applications with an OpenAI-compatible interface, for example Cline |
|
Available API endpoints
Endpoint | Function |
|---|---|
| Shows the AI models available to you |
| Sends a request through the OpenAI-compatible API |
| Native NENNA chat endpoint |
Test the API connection (optional)
You can check that your API key and address work with a simple request in the terminal. Replace the placeholders with your actual connection details.
curl https://unternehmen.nenna.ai/api/v1/models \
-H "Authorization: Bearer sk-IHR-API-SCHLUESSEL"If the connection works, you get a JSON response with the available AI models.
You will need the model IDs from
/api/v1/modelslater to configure Cline.
Install Cline in Visual Studio Code
Cline is an AI extension for Visual Studio Code. It helps developers write, analyze, and edit code.
Open Visual Studio Code.
Go to the
Extensionssection.Search for "Cline".
Select the extension by saoudrizwan.
Click
Installieren.
After installation, Cline appears in the sidebar of Visual Studio Code. Open the extension to start the configuration.
Connect Cline to NENNA
After installation, you set your NENNA instance as the AI provider.
Open the settings
Open Cline in Visual Studio Code.
Click the gear icon for the settings.
Find the
API Providersection.Select
OpenAI Compatibleas the provider.
Enter the connection details
Setting | Value |
|---|---|
|
|
|
|
| Your personal NENNA API key |
| The exact model ID of the AI model you want |
The model ID must match the identifier from the
/api/v1/modelsendpoint exactly. The model names in the NENNA interface can differ from the technical model IDs.
Advanced model settings
Optionally, make further settings under Model Configuration.
Setting | Meaning |
|---|---|
| Sets how much information the model can take into account within one request. The value should match the capabilities of the model you use. |
| Sets the maximum length of a generated response. For many development tasks, values between 4,000 and 8,000 tokens work well. |
| Turn this option on only if the selected model can process images. |
Save the settings
Click Done to finish the configuration. Cline then shows the selected provider and the configured model ID.
Test the connection
Open a project in Visual Studio Code and enter a prompt like this in Cline:
Analysiere die Dateien in diesem Projekt und gib mir eine kurze Übersicht über die Projektstruktur. Erkläre mir anschließend, welche Aufgaben die wichtigsten Dateien übernehmen.Or start with a simple question:
Erkläre mir die Funktion der Datei package.json in diesem Projekt.If the connection works, Cline analyzes the project files and writes a matching answer.
If Cline answers through the configured AI model, the connection to NENNA is set up. Your AI requests now go through your NENNA instance.
Which AI model should I use?
Not every AI model is equally suited to development tasks. For more complex tasks, where Cline analyzes several files or runs different actions, a powerful model is recommended.
Task | Recommendation |
|---|---|
Simple tasks, for example explaining single code sections or adjusting text | Smaller models can be enough. |
Complex development tasks, for example large code analyses, refactoring, or multi-step processes | A model with good reasoning and tool-use abilities, such as the Claude Sonnet or OpenAI GPT model families. |
Which models are actually available to you depends on your NENNA configuration and your contractual agreement.
During the test phase, an inexpensive AI model is available that you use to check the basic API functionality. More powerful models for complex tasks can be activated under a commercial agreement.
Use alternative extensions
The OpenAI-compatible API of NENNA also works with other development tools, as long as the application supports its own API address and an API key.
Continue
Continue is another AI extension for Visual Studio Code. You configure it in the extension settings or in a configuration file. An example:
models:
- name: NENNA Chat
provider: openai
model: IHRE_MODELL_ID
apiBase: https://unternehmen.nenna.ai/api/v1
apiKey: sk-IHR-API-SCHLUESSELReplace the placeholders with your actual connection details. Save the configuration and reload the extension.
Do not store the API key permanently in plain text in a configuration file. Use secure key management where possible.
Roo Code
Roo Code also supports OpenAI-compatible API providers. Setup works much like Cline: choose the OpenAI Compatible provider and enter:
Your NENNA API address.
Your personal API key.
The model ID you want.
Other applications
In general, any application that supports an OpenAI-compatible API can be connected to NENNA. This includes Aider, CLI tools, and applications that use the OpenAI Python SDK. The exact setup depends on the application.
Data protection and security
When you use NENNA through external applications, a few things differ from the regular chat interface.
PII masking
In the NENNA chat interface, personal information can be detected and masked automatically before it is sent to the AI model. The NENNA frontend triggers this PII detection.
With direct API requests, for example through Visual Studio Code and Cline, the external application sends its requests straight to the API. The automatic PII detection of the chat interface does not run in this case.
Make sure that personal or confidential information is protected or anonymized before it is sent. Also follow the data protection policies of your organization.
Protect personal API keys
Your API key gives access to the features enabled for your user account. Do not store it in publicly accessible files or repositories, and use the secure key management of your development environment where possible.
Check regularly which API keys you use. Revoke keys you no longer need in your account settings.
Mind the permissions
Requests through the API are assigned to your NENNA user account. The available models and permissions depend on your individual configuration and your organization's contractual agreement.
Handling confidential information
With external applications too, pay attention to what information you send to an AI model. Only send sensitive information when necessary, for example:
Passwords and login credentials.
API keys and tokens.
Personal data.
Confidential customer data.
Internal company information that is not approved for processing by AI models.
Common problems and solutions
Error: 401 Unauthorized
The connection is rejected because of an authentication error. Possible causes:
The API key was entered incorrectly.
The key was revoked.
The key is missing from the configuration.
Solution: Check the stored API key in your NENNA account settings. Copy it again if needed and update the settings in Cline.
Error: 404 Not Found
The API address you entered was not found. Check that you are using the correct address. For Cline, it is for example https://unternehmen.nenna.ai/api/v1. The address must not point only to the home page of your NENNA instance.
Error: Model not found
The configured AI model was not found. Possible causes:
The model ID was entered incorrectly.
The model is not enabled for your user.
The model ID does not match the technical identifier.
The model you want is not part of your current API activation.
Solution: Check the available models through the /api/v1/models endpoint and copy the model ID exactly into your Cline configuration. If the model you want is not available, contact your NENNA administrator or our support team.
Cline is slow or does not finish tasks
For complex development tasks, Cline sends several requests to the selected AI model. Depending on the model and project size, processing takes correspondingly longer. Possible solutions:
Use a more powerful AI model, if available.
Reduce the maximum output length.
Choose a model with a larger context window.
Split large tasks into smaller steps.
If needed, use the planning and execution features of Cline.
SSL or TLS certificate errors
If your NENNA instance uses a private certificate authority, it must be set as trusted on your operating system. Contact your IT department for this.
Turning off certificate checking is not recommended.
More help
If you have questions about setting up or connecting your development environment to NENNA, our support team is happy to help: [email protected].
For technical problems, please tell us if possible:
The address of your NENNA instance.
The extension you use, for example Cline.
The exact error message.
Never send your personal API key.
