From f5646fa95017e7847bf61fc82db4d3d27f594797 Mon Sep 17 00:00:00 2001 From: Che <30403707+Che-Zhu@users.noreply.github.com> Date: Fri, 6 Mar 2026 11:13:29 +0800 Subject: [PATCH] feat(runtime): add Gemini CLI and Codex CLI support - Add @google/gemini-cli and @openai/codex to npm global packages - Add GEMINI_API_KEY and OPENAI_API_KEY environment variables - Update README.md with new AI CLI documentation - Update ttyd-startup.sh welcome message to show all available AI CLIs --- runtime/Dockerfile | 4 ++++ runtime/README.md | 10 +++++++++- runtime/ttyd-startup.sh | 4 +++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/runtime/Dockerfile b/runtime/Dockerfile index d73c1d6..cafaaaf 100644 --- a/runtime/Dockerfile +++ b/runtime/Dockerfile @@ -30,6 +30,8 @@ ENV DEBIAN_FRONTEND=noninteractive \ ANTHROPIC_AUTH_TOKEN="" \ ANTHROPIC_MODEL="" \ ANTHROPIC_SMALL_FAST_MODEL="" \ + GEMINI_API_KEY="" \ + OPENAI_API_KEY="" \ DOCKER_HUB_NAME="" \ DOCKER_HUB_PASSWD="" @@ -83,6 +85,8 @@ RUN set -eux; \ # ----------------------------------------------------------------------------- RUN npm install -g \ @anthropic-ai/claude-code \ + @google/gemini-cli \ + @openai/codex \ create-next-app@${NEXT_VERSION} \ pnpm \ prisma \ diff --git a/runtime/README.md b/runtime/README.md index 9a1fa52..9e30d79 100644 --- a/runtime/README.md +++ b/runtime/README.md @@ -22,7 +22,9 @@ The FullStack Web Runtime is a production-ready Ubuntu 24.04-based container tha ### AI Integration - **Claude Code CLI**: Latest @anthropic-ai/claude-code package -- Auto-starts on first terminal connection +- **Gemini CLI**: Latest @google/gemini-cli package +- **Codex CLI**: Latest @openai/codex package +- Claude Code auto-starts on first terminal connection - Configured for seamless AI-assisted development ### Container Tools @@ -120,6 +122,12 @@ The Claude Code CLI will auto-start on first connection. - `ANTHROPIC_MODEL` - Model to use (e.g., claude-sonnet-4-5-20250929) - `ANTHROPIC_SMALL_FAST_MODEL` - Fast model for quick tasks +### Gemini CLI Configuration +- `GEMINI_API_KEY` - Your Google AI API key (required for Gemini CLI) + +### Codex CLI Configuration +- `OPENAI_API_KEY` - Your OpenAI API key (required for Codex CLI) + ### Project Configuration - `PROJECT_NAME` - Project name shown in terminal prompt (default: sandbox) diff --git a/runtime/ttyd-startup.sh b/runtime/ttyd-startup.sh index 5d8b81d..4d4d4de 100644 --- a/runtime/ttyd-startup.sh +++ b/runtime/ttyd-startup.sh @@ -55,7 +55,9 @@ echo "▶️ 2. Start the development server:" echo " pnpm dev" echo "" echo "🤖 3. Use AI assistance:" -echo " claude" +echo " claude # Claude Code (Anthropic)" +echo " gemini # Gemini CLI (Google)" +echo " codex # Codex CLI (OpenAI)" echo "" echo "📎 4. Upload files:" echo " • Drag and drop files to the terminal"