About authentication
Before you can use Auggie, you will need to login to create a session token that can be used by Auggie in both interactive and automation modes.Augment authentication tokens are secrets and should be protected with the same level of security you’d use for any sensitive credential. Tokens are tied to the user who logged in, not to your team or enterprise account, so each user has a unique augment token.
Logging in
You can login by running the following command and following the prompts.Logging out
You can logout by running the following command. This will remove the local token from your machine and you will need to login again to use Auggie.Getting your token
For automation, you will need to provide your token each time you run Auggie. After you have logged in above, you can get your token by running the following command.Using your token
After you have your token, you can pass it to Auggie through a number of methods depending on your use case and environment.Environment variables
You can set theAUGMENT_SESSION_AUTH
environment variable to your token before running Auggie. Pass it before you run the command, add it to your environment, or add it to your shell’s rc file to persist it.
Token file
You can store the token as plaintext in a file and then use the--token-file
flag to pass it to Auggie. We do not recommend checking your token into version control.
Revoking your tokens
You can expire all the tokens for the current logged in user by running the following command. Using--logout
will only remove the local token from your machine.