![[Runyour Guide #3] Integrating Runyour API with VS Code to Start AI Coding](https://cdn.prod.website-files.com/659faaa08c491caeb4e3f8a3/6a912f7b6329eaa76639288f_%EB%A9%94%EC%9D%B8_260824_%ED%8A%9C%ED%86%A0%EB%A6%AC%EC%96%BC%203.png)
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.

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

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.
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.
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.
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.
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.

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