taubyte-auth-and-profile
Original:🇺🇸 English
Translated
Handles Taubyte login/profile setup and first-time browser GitHub auth via tau login --new when no account exists; tau login for existing profiles. Stops immediately when browser login is required. Uses non-interactive login when the user supplies a GitHub username; otherwise asks for it explicitly. Must run before cloud/project/resource operations.
4installs
Sourcetaubyte/skills
Added on
NPX Install
npx skill4agent add taubyte/skills taubyte-auth-and-profileTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Auth and profile
Use this skill before cloud, project, resource, clone, push, or GitHub-backed work. The user must be signed in to GitHub through the Tau CLI where that work depends on it.
tauStop conditions (apply first)
Browser-based GitHub login
If login requires the browser (no usable , or still sends the user to the browser):
--tokentau- Tell the user they must finish GitHub authorization in the browser (the agent cannot do it for them).
- Give the exact command to run when that helps.
tau login … - Stop the workflow immediately. Do not continue with other steps, pushes, clones, or repo operations until the user confirms login finished.
tau - Then re-check with .
tau --json current
User will not authenticate
If GitHub-backed work is needed but the user will not run (no account / first machine) or / (existing account) as appropriate: stop and explain that , , clone, and repo registration will fail without auth.
tau login --newtau logintau login <profile_name>tau new projecttau pushPolicy: profile name, token, and non-interactive mode
What actually accepts (confirm with on the installed binary):
tau logintau login --help| Flag | Short | Role |
|---|---|---|
| | Git provider token (e.g. GitHub PAT) for non-browser login when available |
| | Tau profile name |
| | Provider (default |
| — | Create a new profile; implied when no profiles exist |
| | Set as default profile ( |
Usage line: — profile label may be / or the trailing positional.
tau login [command options] <name>--name-n<name>Globals (from ) go before the subcommand, e.g. , per when automating.
tau --helptau --defaults --yes login …taubyte-execution-modesThere is no separate “GitHub username” flag on . Use for the Tau profile name (often the same string as the GitHub handle). Use when you have a PAT for unattended login.
login--name--tokenGitHub handle / profile name
- User already gave a GitHub handle (or explicit profile name): prefer where applicable; set
tau --defaults --yes login …to the name they asked for, or their handle as--nameif they did not specify otherwise; add<profile_name>when a token is available. Do not re-prompt unless unclear or wrong.--token - User did not give a handle when you need it for or repo context: ask in chat before suggesting or running commands. Do not guess or invent a profile name.
--name
Token vs browser
- With a valid , a browser step is usually unnecessary.
--token - Without , expect browser GitHub sign-in → Stop conditions above.
--token
Workflow
1. Check current context
bash
tau --json current2. If profile is missing or there is no Tau account yet
Standard path: with GitHub (not optional for first account). Apply Policy and Stop conditions before choosing flags.
tau login --newExample (explicit provider and profile name):
bash
tau login --new --provider github --name <profile_name>- If the user should only attach or switch an existing account: or
tau login(positional profile pertau login <profile_name>).tau login --help - If you are automating and have a handle plus PAT: with
tau --defaults --yes login …and--tokenas documented in help.--name
If this path does not use , treat it as browser OAuth → Stop conditions: inform the user, stop, resume only after they confirm, then go to step 3.
--token3. After the user confirms login (including any browser step)
bash
tau --json currentDo not treat login as complete until the user has confirmed and this check shows a valid profile as expected.
Named profile and switching
Creating a named profile uses the same pattern as in step 2.
tau login --new … --name <profile_name>bash
tau login --new --provider github --name <profile_name>Switching default / context to an existing profile:
bash
tau login <profile_name>Apply the same Policy and Stop conditions as for the first-time flow.
Quick verify
bash
tau --json currentUse after login and whenever you need to confirm which profile is active.