Environment Variables
All environment variables recognized by NexusCore CLI and NexusIDE.
General
| Variable | Description | Default |
|---|---|---|
NEXUS_CONFIG | Path to config file | ~/.nexuscore/config.yaml |
NEXUS_VERBOSE | Enable verbose output (1 or 0) | 0 |
NEXUS_NO_COLOR | Disable colored output (1 or 0) | 0 |
NEXUS_LOG_LEVEL | Log level (debug, info, warn, error) | info |
Model Configuration
| Variable | Description | Default |
|---|---|---|
NEXUS_MODEL_PROVIDER | Default model provider name | — |
NEXUS_API_KEY | API key for the default provider | — |
NEXUS_MODEL | Default model name | — |
NEXUS_BASE_URL | Custom API base URL for the default provider | — |
OPENAI_API_KEY | OpenAI API key (used when provider type is openai) | — |
ANTHROPIC_API_KEY | Anthropic API key (used when provider type is anthropic) | — |
GOOGLE_API_KEY | Google AI API key (used when provider type is google) | — |
Authentication
| Variable | Description | Default |
|---|---|---|
NEXUS_AUTH_URL | Auth service URL | https://api.nexus-suite.dev |
NEXUS_TOKEN | JWT token for CI/automation (bypasses interactive login) | — |
TIP
Use NEXUS_TOKEN in CI/CD pipelines where interactive login isn't possible. Generate a long-lived token from the Portal at nexus-suite.dev/account.
Sync
| Variable | Description | Default |
|---|---|---|
NEXUS_SYNC_ENABLED | Enable encrypted sync (1 or 0) | 0 |
NexusAPI Server Variables
These variables are used by the NexusAPI backend service, not by the CLI or IDE.
| Variable | Description |
|---|---|
DATABASE_URL | PostgreSQL connection string |
REDIS_URL | Redis connection string |
JWT_PRIVATE_KEY | RS256 private key (PEM format) |
JWT_PUBLIC_KEY | RS256 public key (PEM format) |
JWT_ISSUER | JWT issuer claim (https://api.nexus-suite.dev) |
STRIPE_SECRET_KEY | Stripe secret API key |
STRIPE_WEBHOOK_SECRET | Stripe webhook signing secret |
STRIPE_PRICE_PRO_MONTHLY | Stripe price ID for Pro monthly |
STRIPE_PRICE_PRO_ANNUAL | Stripe price ID for Pro annual |
STRIPE_PRICE_STUDIO_MONTHLY | Stripe price ID for Studio monthly |
STRIPE_PRICE_STUDIO_ANNUAL | Stripe price ID for Studio annual |
GOOGLE_CLIENT_ID | Google OAuth client ID |
GOOGLE_CLIENT_SECRET | Google OAuth client secret |
GITHUB_CLIENT_ID | GitHub OAuth client ID |
GITHUB_CLIENT_SECRET | GitHub OAuth client secret |
RESEND_API_KEY | Resend email API key |
EMAIL_FROM | Sender address for transactional emails |
TELEGRAM_BOT_TOKEN | Telegram Bot API token |
R2_ACCOUNT_ID | Cloudflare R2 account ID |
R2_ACCESS_KEY_ID | R2 access key |
R2_SECRET_ACCESS_KEY | R2 secret key |
R2_BUCKET_SYNC | R2 bucket for sync blobs |
R2_BUCKET_SKILLS | R2 bucket for skill packages |
NODE_ENV | Node environment (production, development) |
PORT | API server port |
CORS_ORIGINS | Allowed CORS origins |
Precedence
Environment variables take precedence over config file values but are overridden by command-line flags:
- Command-line flags (highest priority)
- Environment variables
- Project-level config (
.nexuscore/config.yaml) - User-level config (
~/.nexuscore/config.yaml) - Built-in defaults (lowest priority)