Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gengjiawen/os-init

Repository files navigation

os-init CLI

npm version

A CLI tool to quickly configure AI development tools and environments.

Usage

Configure Claude Code

pnpx @gengjiawen/os-init set-cc <API_KEY>

Configures Claude Code Router with your API key. This command will:

  • Write ~/.claude-code-router/config.json
  • Write ~/.claude/settings.json
  • Install global tools: @anthropic-ai/claude-code, @musistudio/claude-code-router

Configure Codex CLI

pnpx @gengjiawen/os-init set-codex <API_KEY>

Configures Codex CLI with your API key. This command will:

  • Write ~/.codex/config.toml
  • Write ~/.codex/auth.json
  • Install global tool: @openai/codex

Configure Raycast AI

pnpx @gengjiawen/os-init set-raycast-ai <API_KEY>

Configures Raycast AI providers with your API key. This command will:

  • Write ~/.config/raycast/ai/providers.yaml

Setup Dev Environment

pnpx @gengjiawen/os-init set-dev <SSH_PUBLIC_KEY>

Sets up a Docker-based development environment with SSH access. This command will:

  • Copy dev-setup directory to your current directory (or specify with -t, --target <dir>)
  • Configure SSH public key in Dockerfile
  • Automatically run docker-compose build && docker-compose up -d (if docker-compose is available)
  • Display SSH connection command with your local IP address

Example:

pnpx @gengjiawen/os-init set-dev "ssh-rsa AAAAB3NzaC1yc2..."

Project generated by gengjiawen/ts-scaffold

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •