Insight

[Runyour Guide #3] Integrating Runyour API with VS Code to Start AI Coding

[Runyour Guide #3] Integrating Runyour API with VS Code to Start AI Coding

Hi, this is the Runyour team.

Are you tired of constantly switching between your browser to ask AI questions and VS Code to copy and paste the code back?

With Runyour's API Router, you can connect a single API key to various AI models across external services and development tools.

In this guide, we’ll use the AI coding extension for VS Code, Kilo Code, to demonstrate how to connect your Runyour API and use it in your actual coding workflow.

🎬 Follow along with the video

You can watch the entire process, from generating your API key and connecting it to VS Code, to selecting AI models and writing code.

What you'll learn in this video

STEP 1. Generate your Runyour API key

First, log in to Runyour and go to the [API Router] menu to generate your API Key.

Your API key is the authentication credential used to call the AI models provided by Runyour from external programs or development environments.

STEP 2. Install Kilo Code in VS Code

In the VS Code Extensions Search for and install Kilo Code in .

With AI coding tools like Kilo Code, you can request code using natural language or modify existing code without ever leaving VS Code.

STEP 3. Connecting the Runyour API

Connect the Runyour API in the Kilo Code provider settings.

The video demonstrates the process of adding a provider and entering the following information through the actual settings screen.

  • API Key : The API key generated in Runyour
  • Base URL : https://api.runyour.ai/v1
  • Model : The AI model to use for your tasks

Settings menus and field names may vary depending on the Kilo Code version, so we recommend following along with the video if this is your first time connecting.

STEP 4. Start coding with your preferred AI model

Once the integration is complete, you can select the AI model you need from those supported by Runyour and begin coding.

For example, you can make requests in natural language, such as "Write code to print the multiplication table from 2 to 9," or ask for modifications, explanations, or refactoring of the code you are currently working on.

By using the Runyour API, you are not locked into a specific model or service for your development environment, and another advantage is that you can select and utilize the AI model that best fits your specific tasks and goals.is also a key benefit.

Check out the Runyour guide series

If you want to get more out of Runyour, check out the following tutorials as well.

📍 [Part 1] Getting Started with Runyour Agent: From Sign-up to Dashboard

📍 [Part 2] Building Your Own AI Work Agent Using Internal Documents

👉 [Get Started with Runyour Agent]