AI Coding Tools

Setup guides for popular AI coding assistants

CloudForge works with any CLI tool

Since CloudForge provides a standard terminal, you can use any command-line tool - not just the ones listed here.

Using a Managed Environment?

With the AI Coding template, all these tools are already installed! Just create a managed server and start coding.

Codex CLI

by OpenAI

Installation

npm install -g @openai/codex

Authentication

Set your OpenAI API key:

export OPENAI_API_KEY=sk-xxx
codex

To persist, add to your shell profile:

echo 'export OPENAI_API_KEY=sk-xxx' >> ~/.bashrc

Usage

codex "Create a React component for a login form"
View on GitHub

Gemini CLI

by Google

Installation

npm install -g @google/gemini-cli

Authentication

Log in with your Google account:

gemini auth login

Or use an API key:

export GOOGLE_API_KEY=AIza...
gemini

Usage

gemini "Explain this codebase and suggest improvements"
View on GitHub
A

Aider

Open Source

Popular

Installation

pip install aider-chat

Or with pipx (recommended):

pipx install aider-chat

Authentication

Aider supports multiple LLM providers. Set your API key:

For Anthropic (Claude)
export ANTHROPIC_API_KEY=sk-ant-xxx
For OpenAI
export OPENAI_API_KEY=sk-xxx

Usage

cd your-project
aider

Start with specific files:

aider src/main.py src/utils.py

Popular Options

OptionDescription
--model claude-3-5-sonnetUse Claude 3.5 Sonnet
--model gpt-4oUse GPT-4o
--auto-commitsAuto-commit changes
--watchWatch mode for file changes
Official Website
C

Cline

Open Source (VS Code Extension CLI)

Installation

npm install -g cline

Authentication

export ANTHROPIC_API_KEY=sk-ant-xxx

Usage

cline "Add dark mode support to this app"
View on GitHub

Comparison

ToolProviderPricingBest For
Claude CodeAnthropic$20-200/mo (subscription)Best overall experience
Codex CLIOpenAIPay-as-you-go (API)GPT-4 users
Gemini CLIGoogleFree tier availableGoogle ecosystem
AiderOpen SourceFree (bring your own API)Git integration, flexibility
ClineOpen SourceFree (bring your own API)VS Code users

Tips for Remote AI Coding

  • 1. Keep your API keys in ~/.bashrc or ~/.zshrc so they persist across sessions
  • 2. Use tmux or screen for long-running AI sessions that survive disconnects
  • 3. Create a CLAUDE.md or .aider file in your project for context
  • 4. Use Git frequently - AI tools can make big changes!