0:00 Let me show you how you can use OpenAI's CLI tool, Codex, for free. By default, if you've used Codex before, you'll notice that you're using the model04 Mini. Now, this is one of OpenAI's models and it costs money in order to use the API to send and receive requests. Well, since every OpenAI model requires some amount of price in order to put in any inputs and get any outputs. This means that you have to supply your account with some money in order to use Codex at all, at least with the OpenAI models. But now we have the ability to switch providers. So we
0:31 don't just have to use open AI. We could use any model in the OpenRouter platform or the Gemini models or Ollama particularly. We could pull down an Ollama model onto our machine, run it locally and then configure it to be used inside of Codex. So we don't have to pay anything. We're literally running the model on our machine. So let's check out how we can do that. Well, the first way is I want to show you using the provider flag and using OpenRouter. So all we do here is we call C Codex which is our CLI tool and then we put a d-provider and then we follow that with
🔒 The full, searchable transcript is available with Pro.