Home
Docs/Configuration

Configuration

Guide for configuring AI providers, connecting GitHub/Git and managing SSH keys.

AI Providers

Pocket Code uses Google Gemini by default with no API key required. With the Premium plan you can add keys for all 39 supported providers.

Add an API key

  1. 1Open the app and go to Settings (gear icon in the sidebar).
  2. 2Select "AI" β†’ "Providers".
  3. 3Choose the provider (OpenAI, Anthropic, Groq, etc.).
  4. 4Enter your API key and tap Save.
  5. 5The provider becomes available in the AI Assistant module and in AI Office.

Secure storage

API keys are stored encrypted in the device's Android Keystore. They are not sent to Pocket Code servers or synced to the cloud.

Git & GitHub

Connect your GitHub account to clone private repositories, push and manage pull requests directly from the app.

Connect GitHub

  1. 1Go to Settings β†’ "Git & GitHub".
  2. 2Tap "Connect with GitHub".
  3. 3A browser will open to authorize Pocket Code on your GitHub account.
  4. 4Authorize access and return to the app.
  5. 5Your account is linked. You can clone private repos from the Editor module.

Configure Git name & email

Go to Settings β†’ "Git & GitHub" β†’ "Identity". Enter your name and email. This data will appear in commits you make from the app.

SSH Keys

Manage the SSH keys used by the Terminal module to connect to remote servers.

Generate a new key

  1. 1Go to Settings β†’ "SSH Keys".
  2. 2Tap "New key".
  3. 3Enter a descriptive name (e.g. My VPS server).
  4. 4Select the algorithm (Ed25519 recommended, RSA 4096 also available).
  5. 5The app generates the key pair. The private key is stored encrypted on the device.
  6. 6Copy the public key with "Copy public key" and add it to your server (~/.ssh/authorized_keys) or GitHub β†’ Settings β†’ SSH Keys.

Import existing key

If you already have a key pair, go to Settings β†’ "SSH Keys" β†’ "Import". Select the private key file from device storage. The app imports and encrypts the key automatically.

Security

SSH private keys are always stored encrypted with the Android Keystore. They are never exported or transmitted outside the device.