Skip to main content

Get Your API Key

1

Sign in to Nogic

Go to nogic.dev and sign in with your account.
2

Navigate to API Keys

Click on Settings in the sidebar, then select API Keys.
3

Create a New Key

Click Create API Key, give it a name (e.g., “My Laptop”), and click Create.
4

Copy Your Key

Copy the API key that appears. It starts with sk_ and looks like:
sk_aBcDeFgHiJkLmNoPqRsTuVwXyZ123456
Save your key immediately! You won’t be able to see it again after closing the dialog. If you lose it, you’ll need to create a new one.

Login to the CLI

Run the login command:
nogic login
When prompted, paste your API key:
Enter your API key: sk_aBcDeFgHiJkLmNoPqRsTuVwXyZ123456
✓ API key verified successfully
✓ Logged in as [email protected]

Where is My Key Stored?

Your API key is stored in ~/.nogic/config.json:
{
  "api_key": "sk_..."
}
The API URL is built into the CLI - you only need to store your API key.

Verify Authentication

To check if you’re authenticated:
nogic projects list
If authenticated, you’ll see your projects:
Found 2 project(s):

  my-project (abc123...) *
  another-project (def456...)

* = current project

Logout

To remove your stored credentials:
rm ~/.nogic/config.json

Multiple Environments

If you need to use different API keys for different projects, you can set the NOGIC_API_KEY environment variable:
NOGIC_API_KEY=sk_different_key nogic projects list
This overrides the stored API key for that command only.

Next Steps

CLI Commands

Learn all available CLI commands