@@ -427,6 +427,76 @@ Commands with JSON output support:
427427- ` kernel proxies delete <id> ` - Delete a proxy configuration
428428 - ` -y, --yes ` - Skip confirmation prompt
429429
430+ ### Agent Auth
431+
432+ Automated authentication for web services. The ` run ` command orchestrates the full auth flow automatically.
433+
434+ - ` kernel agents auth run ` - Run a complete authentication flow
435+ - ` --domain <domain> ` - Target domain for authentication (required)
436+ - ` --profile <name> ` - Profile name to use/create (required)
437+ - ` --value <key=value> ` - Field name=value pair (repeatable, e.g., ` --value username=foo --value password=bar ` )
438+ - ` --credential <name> ` - Existing credential name to use
439+ - ` --save-credential-as <name> ` - Save provided credentials under this name
440+ - ` --totp-secret <secret> ` - Base32 TOTP secret for automatic 2FA
441+ - ` --proxy-id <id> ` - Proxy ID to use
442+ - ` --login-url <url> ` - Custom login page URL
443+ - ` --allowed-domain <domain> ` - Additional allowed domains (repeatable)
444+ - ` --timeout <duration> ` - Maximum time to wait for auth completion (default: 5m)
445+ - ` --open ` - Open live view URL in browser when human intervention needed
446+ - ` --output json ` , ` -o json ` - Output JSONL events
447+
448+ - ` kernel agents auth create ` - Create an auth agent
449+ - ` --domain <domain> ` - Target domain for authentication (required)
450+ - ` --profile-name <name> ` - Name of the profile to use (required)
451+ - ` --credential-name <name> ` - Optional credential name to link
452+ - ` --login-url <url> ` - Optional login page URL
453+ - ` --allowed-domain <domain> ` - Additional allowed domains (repeatable)
454+ - ` --proxy-id <id> ` - Optional proxy ID to use
455+ - ` --output json ` , ` -o json ` - Output raw JSON object
456+
457+ - ` kernel agents auth list ` - List auth agents
458+ - ` --domain <domain> ` - Filter by domain
459+ - ` --profile-name <name> ` - Filter by profile name
460+ - ` --limit <n> ` - Maximum number of results to return
461+ - ` --offset <n> ` - Number of results to skip
462+ - ` --output json ` , ` -o json ` - Output raw JSON array
463+
464+ - ` kernel agents auth get <id> ` - Get an auth agent by ID
465+ - ` --output json ` , ` -o json ` - Output raw JSON object
466+
467+ - ` kernel agents auth delete <id> ` - Delete an auth agent
468+ - ` -y, --yes ` - Skip confirmation prompt
469+
470+ ### Credentials
471+
472+ - ` kernel credentials create ` - Create a new credential
473+ - ` --name <name> ` - Unique name for the credential (required)
474+ - ` --domain <domain> ` - Target domain (required)
475+ - ` --value <key=value> ` - Field name=value pair (repeatable)
476+ - ` --sso-provider <provider> ` - SSO provider (google, github, microsoft)
477+ - ` --totp-secret <secret> ` - Base32-encoded TOTP secret for 2FA
478+ - ` --output json ` , ` -o json ` - Output raw JSON object
479+
480+ - ` kernel credentials list ` - List credentials
481+ - ` --domain <domain> ` - Filter by domain
482+ - ` --output json ` , ` -o json ` - Output raw JSON array
483+
484+ - ` kernel credentials get <id-or-name> ` - Get a credential by ID or name
485+ - ` --output json ` , ` -o json ` - Output raw JSON object
486+
487+ - ` kernel credentials update <id-or-name> ` - Update a credential
488+ - ` --name <name> ` - New name
489+ - ` --value <key=value> ` - Field values to update (repeatable)
490+ - ` --sso-provider <provider> ` - SSO provider
491+ - ` --totp-secret <secret> ` - TOTP secret
492+ - ` --output json ` , ` -o json ` - Output raw JSON object
493+
494+ - ` kernel credentials delete <id-or-name> ` - Delete a credential
495+ - ` -y, --yes ` - Skip confirmation prompt
496+
497+ - ` kernel credentials totp-code <id-or-name> ` - Get current TOTP code
498+ - ` --output json ` , ` -o json ` - Output raw JSON object
499+
430500## Examples
431501
432502### Create a new app
@@ -641,6 +711,35 @@ kernel proxies get prx_123
641711kernel proxies delete prx_123 --yes
642712```
643713
714+ ### Agent auth
715+
716+ ``` bash
717+ # Run a complete auth flow with inline credentials
718+ kernel agents auth run --domain github.com --profile my-github \
719+ --value username=myuser --value password=mypass
720+
721+ # Auth with TOTP for automatic 2FA handling
722+ kernel agents auth run --domain github.com --profile my-github \
723+ --value username=myuser --value password=mypass \
724+ --totp-secret JBSWY3DPEHPK3PXP
725+
726+ # Save credentials for future re-auth
727+ kernel agents auth run --domain github.com --profile my-github \
728+ --value username=myuser --value password=mypass \
729+ --save-credential-as github-creds
730+
731+ # Re-use existing saved credential
732+ kernel agents auth run --domain github.com --profile my-github \
733+ --credential github-creds
734+
735+ # Auto-open browser when human intervention is needed
736+ kernel agents auth run --domain github.com --profile my-github \
737+ --credential github-creds --open
738+
739+ # Use the authenticated profile with a browser
740+ kernel browsers create --profile-name my-github
741+ ```
742+
644743## Getting Help
645744
646745- ` kernel --help ` - Show all available commands
0 commit comments