Credentials
Copy page
Learn how to securely store and manage credentials for your agents using Nango, environment variables, or Keychain.
Overview
There are multiple ways to manage credentials for your agents, each with different security and convenience trade-offs:
- Nango Cloud: Managed credential store with web interface
- Nango Local: Self-hosted credential store using Docker
- Environment Variables: Simple SDK-based approach using environment variables
- Keychain: Secure local storage using your operating system's credential manager
Option 1: Nango Cloud setup
Step 1: Create a Nango account
Sign up here
Step 2: Save your Nango secret key
After creating your Nango account, navigate to Environment Settings in your dashboard and copy the secret key.
Step 3: Configure your root .env file
Step 4: Verify Setup
-
Restart your Inkeep agents:
-
Create a new credential in the Visual Builder
Option 2: Nango local setup
Step 1: Clone the optional services repository
Step 2: Start Nango Services
Inside the agents-optional-local-dev repository, run the following command:
Step 3: Configure Environment Variables
In your root project directory (not inside the agents-optional-local-dev repository), update your .env file:
To get your Nango secret key:
- Open Nango at
http://localhost:3050 - Navigate to Environment Settings and copy the secret key
Step 4: Verify Setup
-
Restart your Inkeep agents:
-
Create a new credential in the Visual Builder
Option 3: Keychain (Bearer authentication)
You can also store bearer tokens in your operating system's Keychain by choosing Keychain Store as the credential store when creating a credential in the Visual Builder. More information about Keychain Store can be found here.
Option 4: Environment variables
When using the SDK, you can create credentials that reference environment variables using the Memory Store. Follow the Basic Setup Example here to see how to set this up.