Complete Setup Guide

How to Use Codex with
Novita AI Models

Transform your development workflow with powerful AI coding assistance

What is Codex CLI?

Codex CLI is a terminal-based coding agent that combines local execution with cloud AI capabilities. Unlike code generation tools that only produce code snippets, Codex CLI can understand your entire project, execute the code it creates, debug issues, and iterate until solutions work correctly.

Local-First Architecture with cloud AI capabilities
Full project understanding and context awareness
Autonomous operation with multiple approval modes
> codex --help

Codex CLI - AI Coding Assistant

Usage: codex [OPTIONS] [PROMPT]

Options:
  --version      Show version
  --help         Show this help
  --auto         Enable auto mode
  --suggest      Enable suggest mode

> Create a Python API handler
✅ Analyzing project structure...
🔍 Reading existing patterns...
✨ Generating optimized code...

How to Access Novita AI Models

Follow these steps to configure Codex CLI with powerful Novita AI models

1

Create Account

Visit Novita AI's website and sign up for an account to get started

https://novita.ai
2

Get API Key

Generate your API key from the Key Management page

Authorization: Bearer YOUR_API_KEY
3

Install Codex

Install Codex CLI via npm or Homebrew

npm install -g @openai/codex

Configuration Example

[model_providers.novitaai]
name = "Novita AI"
base_url = "https://api.novita.ai/openai"
http_headers = {"Authorization" = "Bearer YOUR_NOVITA_API_KEY"}
wire_api = "chat"

model = "qwen/qwen3-coder-480b-a35b-instruct"
model_provider = "novitaai"

Available Models

Choose the right model for your specific development needs

DeepSeek V3.1

Superior reasoning and complex problem-solving

deepseek/deepseek-v3.1

Qwen Coder

Specialized for programming and code refactoring

qwen/qwen3-coder-480b-a35b-instruct

Kimi K2

Agentic workflows and fast execution

moonshotai/kimi-k2-0905

GPT OSS

Reliable baseline performance

openai/gpt-oss-120b

GLM-4.5

High success rate for tool calling

zai-org/glm-4.5

Gemma 3

Efficient and fast responses

google/gemma-3-12b-it

Start Your AI Coding Journey

Codex CLI with Novita AI models provides a powerful, flexible development environment that combines local control with cloud AI capabilities. Accelerate your workflow while maintaining code quality and security.

Recommended Starting Point

model = "qwen/qwen3-coder-480b-a35b-instruct"
Novita AI

An AI cloud platform offering easy model deployment and affordable GPU cloud services