Where to Find the API Key for Netvara Client
Overview
Netvara Client uses different credentials depending on where the request originates:
- Local API calls from the same machine use the automatically generated local token stored at
~/.netvara-client/local_api_key. - Remote or network calls over Tailscale or a LAN use your account's Netvara User API key, which begins with
net_....
Use only the credential appropriate for the connection path.
Prerequisites
- Netvara Client installed for local access, or a Netvara account for remote access.
- Terminal access if you need to read the local token.
- Access to the Netvara Console or the account credentials that provide your User API key for remote access.
Step-by-Step Instructions
Local calls on the same machine
The local token is generated during the first installation and stored here:
~/.netvara-client/local_api_keyThe file is created with owner-only permissions (0600). Older clients used a file called local_token, which is migrated automatically to local_api_key. To view it in Terminal:
cat ~/.netvara-client/local_api_keyTo copy it on macOS:
pbcopy < ~/.netvara-client/local_api_keyA local request uses the loopback gateway and the token as a Bearer credential:
curl http://127.0.0.1:8091/v1/models \
-H "Authorization: Bearer $(cat ~/.netvara-client/local_api_key)"Remote or network calls
For requests over Tailscale or a LAN, use the User API key associated with your Netvara account. Generate or copy it from the Netvara Console, or use the key provided with your account credentials. It has the following format:
net_...Example:
curl http://<host-address>:8091/v1/models \
-H "Authorization: Bearer net_your_user_api_key"Replace <host-address> with the host's Tailscale or LAN address and replace the example key with your actual User API key.
Verification
1. For local access, verify that ~/.netvara-client/local_api_key exists and that a request to http://127.0.0.1:8091/v1 authenticates successfully.
2. For remote access, verify that the key begins with net_... and use it with the host's network address.
3. Keep credentials private and never commit them to source control or paste them into public issue reports.
Troubleshooting & Common Questions
My local token is missing. Confirm that Netvara Client is installed for the same user account and that ~/.netvara-client is the expected home directory. Do not invent a replacement token or edit internal client files manually; reinstall or contact support if the file was removed.
My remote request fails with the local token. This is expected. Remote and network callers must use a Netvara User API key in the net_... format.
Where is the User API key? Open the Netvara Console and use the API-key or account-credentials area, or use the key provided with your account. Contact your administrator if you do not have permission to create or view one.
What should I do with other credentials in ~/.netvara-client? Nothing. Internal device credentials are managed by the service and must not be used in client applications. Applications should use the local token for same-machine calls or a User API key for remote calls.
Can I share my API key with a teammate? Treat it like a password. Do not share it through public channels. Create separate credentials when your account or organization supports that option.
