Skip to main content

Quickstart

AugmentOS is how you write powerful smart glasses apps. In this Quickstart, let's go from 0 to fully functioning app (that works on these smart glasses) in less than 15 minutes.

Prerequisites​

  • Node.js (v18 or later)
  • Bun
  • Basic TypeScript knowledge

Building Your First App​

The quickest way to get started is using our example app. This guide assumes you have a pair of compatible smart glasses connected to a phone running the AugmentOS app.

Install AugmentOS on your phone​

Download AugmentOS from AugmentOS.org/install

Set up ngrok​

  1. Install ngrok
  2. Create an ngrok account
  3. Set up a static address/URL in the ngrok dashboard
  • Make sure you run the ngrok config add-authtoken <your_authtoken> line.
  • Make sure you select Static Domain, then generate a static domain.

Register your app with AugmentOS​

AugmentOS Console

  1. Navigate to console.AugmentOS.org
  2. Click "Sign In" and log in with the same account you're using for AugmentOS
  3. Click "Create App"
  4. Set a unique package name like com.yourName.yourAppName
  5. For "Public URL", enter your ngrok static URL
  6. In the edit app screen, add the microphone permission

Note: If your app needs access to device data like microphone, location, or notifications, you can configure permissions in the developer console. See the Permissions guide for details.

Get your app running​

  1. Install bun

  2. Create a new repo from the template using the Use this template dropdown in the upper right of the example app repository or the following command:

    gh repo create --template AugmentOS-Community/AugmentOS-Cloud-Example-App

    Create repo from template

    Note: If you want a more in-depth example (recommended for those who've already completed this quickstart), you can use the Extended Example which includes app settings support.

  3. Clone your new repo locally:

    git clone <your-repo-url>
  4. Navigate to your repo directory and install dependencies:

    cd <your-repo-name>
    bun install
  5. Set up your environment variables:

    • Create a .env file in the root directory by copying the example:
      cp .env.example .env
    • Edit the .env file with your app details:
      PORT=3000
      PACKAGE_NAME=com.yourName.yourAppName
      AUGMENTOS_API_KEY=your_api_key_from_console
    • Make sure the PACKAGE_NAME matches what you registered in the AugmentOS Console
    • Get your API_KEY from the AugmentOS Developer Console
  6. Run your app:

    bun run dev
  7. Expose your app to the internet with ngrok:

    ngrok http --url=<YOUR_NGROK_URL_HERE> 3000

    Note: 3000 is the port. It must match what is in the app config. If you changed it to 8080, use 8080 for ngrok instead.

IMPORTANT: After making changes to your app code or restarting your server, you must restart your app inside the AugmentOS phone app.

For more information, visit the AugmentOS-Cloud-Example-App repository. For a more in-depth example with app settings support, see the Extended Example.

Next Steps​