# How to start using LLMs to help write Julia code?

**URL:** https://discourse.julialang.org/t/how-to-start-using-llms-to-help-write-julia-code/120912
**Category:** VS Code
**Tags:** ai, llm
**Created:** [October 4, 2024, 1:14pm UTC](https://discourse.julialang.org/t/how-to-start-using-llms-to-help-write-julia-code/120912 "2024-10-04T13:14:00Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Nathan\_Boyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nathan_boyer/32/14825_2.png) [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)
#### Post date: [October 4, 2024, 1:14pm UTC](https://discourse.julialang.org/t/how-to-start-using-llms-to-help-write-julia-code/120912/1 "2024-10-04T13:14:00Z")

</div>

Continuing the discussion from [Is Julia 2.0 needed?](https://discourse.julialang.org/t/is-julia-2-0-needed/120842/36):

I’m curious how people are integrating AI tools to help them code. Seems this is growing in popularity, but I’ve not really looked into how to do it myself yet.

Are there free options available, or is everyone paying monthly subscriptions for this help?  
Is Copilot the only option that works with VSCode, or are there ways to integrate other LLMs?

---

<div class="post-metadata">

### Author: ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)
#### Post date: [October 4, 2024, 1:19pm UTC](https://discourse.julialang.org/t/how-to-start-using-llms-to-help-write-julia-code/120912/2 "2024-10-04T13:19:18Z")

</div>

The VSC `Codeium` extension works nicely and is free.

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [October 4, 2024, 1:20pm UTC](https://discourse.julialang.org/t/how-to-start-using-llms-to-help-write-julia-code/120912/3 "2024-10-04T13:20:36Z")

</div>

I’m using copilot, but I have a free education account.

(it would be cool to have something like that integrated into the Julia REPL, through a package).

---

<div class="post-metadata">

### Author: ![DrPapa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/drpapa/32/6835_2.png) [@DrPapa](https://discourse.julialang.org/u/DrPapa)
#### Post date: [October 4, 2024, 2:38pm UTC](https://discourse.julialang.org/t/how-to-start-using-llms-to-help-write-julia-code/120912/4 "2024-10-04T14:38:28Z")

</div>

> (it would be cool to have something like that integrated into the Julia REPL, through a package).

See current options here: [GitHub - svilupp/awesome-generative-ai-meets-julia-language: Comprehensive guide to generative AI projects and resources in Julia.](https://github.com/svilupp/awesome-generative-ai-meets-julia-language?tab=readme-ov-file#packages)

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [October 4, 2024, 6:34pm UTC](https://discourse.julialang.org/t/how-to-start-using-llms-to-help-write-julia-code/120912/5 "2024-10-04T18:34:45Z")

</div>

The latest VSCode (updated today) says that it has “copilot support for the native REPL”, being the “native REPL” something that is used by the Python extension.

In the Julia REPL I didn’t see anything happening. Anyone knows what is that about?

---

<div class="post-metadata">

### Author: ![RomeoV](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/romeov/32/37687_2.png) [@RomeoV](https://discourse.julialang.org/u/RomeoV)
#### Post date: [October 5, 2024, 1:29am UTC](https://discourse.julialang.org/t/how-to-start-using-llms-to-help-write-julia-code/120912/6 "2024-10-05T01:29:21Z")

</div>

I am using aider with an Claude Sonnet 3.5 API key. However, for some tasks it works best to first generate python code and then translate python code to Julia.

aider works straight from your command line (a sort of TUI) and therefore is used in parallel of your choice of editor. I then use my editor to inspect and adjust the generated git diff.

---

<div class="post-metadata">

### Author: ![jonathanBieler](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jonathanBieler](https://discourse.julialang.org/u/jonathanBieler)
#### Post date: [October 5, 2024, 11:11am UTC](https://discourse.julialang.org/t/how-to-start-using-llms-to-help-write-julia-code/120912/7 "2024-10-05T11:11:58Z")

</div>

Continue + Ollama is also easy to setup : [An entirely open-source AI code assistant inside your editor · Ollama Blog](https://ollama.com/blog/continue-code-assistant)
