# GMGN OpenAPI CLI Configuration # # Global config (recommended): place this file at ~/.config/gmgn/.env — works from any directory. # Project-level .env (this file) takes precedence over the global config. # # Copy this file to .env and fill in your values # API Key (required) — apply at https://gmgn.ai/ai GMGN_API_KEY=your_api_key_here # [SECURITY WARNING] GMGN_PRIVATE_KEY is a request-signing key used to authenticate # API calls to the GMGN OpenAPI service. It is NOT a blockchain wallet private key. # If compromised, an attacker could forge authenticated API requests on your behalf. # Never share this file or commit it to version control (.gitignore it). # Restrict file permissions: chmod 600 ~/.config/gmgn/.env # # Private key content (required for swap / order commands) # Paste the full PEM content as a single-line value with \n for newlines, or use multiline with quotes: # # Option 1 — single-line with escaped newlines: # GMGN_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n\n-----END PRIVATE KEY-----\n" # # Option 2 — multiline wrapped in double quotes: # GMGN_PRIVATE_KEY="-----BEGIN PRIVATE KEY----- # # -----END PRIVATE KEY-----" GMGN_PRIVATE_KEY=