staging-browser-localhost
8
总安装量
6
周安装量
#34618
全站排名
安装命令
npx skills add https://github.com/kentoje/dotfiles --skill staging-browser-localhost
Agent 安装分布
claude-code
4
windsurf
3
opencode
3
codex
3
antigravity
3
gemini-cli
3
Skill 文档
Staging Browser (Localhost)
Opens an agent-browser instance authenticated with staging credentials for localhost development.
Usage
Use this skill when you need to open a browser at http://localhost:<PORT> authenticated against the Aircall staging environment.
Steps to Execute
1. Get the Staging Token
Invoke the /staging-token skill to retrieve the JWT token. Extract idToken and refreshToken from the JSON response.
2. Navigate to SSO Callback with Tokens
Navigate directly to the SSO callback URL with tokens as query parameters:
agent-browser --session staging open "http://localhost:<PORT>/sso/callback?token=$ID_TOKEN&refresh_token=$REFRESH_TOKEN&redirect=$TARGET_PATH"
Where:
$ID_TOKEN– theidTokenfrom step 1$REFRESH_TOKEN– therefreshTokenfrom step 1$TARGET_PATH– the path to redirect to after auth (e.g.,/playground)
The app will read the tokens from query params, store them, and redirect to the target page authenticated.
3. Interact with Page
# Get accessibility snapshot for AI interaction
agent-browser --session staging snapshot -i -c
# Take screenshot if needed
agent-browser --session staging screenshot /tmp/staging-screenshot.png
Arguments
- URL (optional): The localhost URL to navigate to. If a path is provided (e.g.,
/playground), use it as theredirectparam.
Technical Details
- SSO Callback Route:
/sso/callback - Query Params:
token,refresh_token,redirect - Session Name:
staging - Browser Mode: Headless (default), use
--headedfor visible browser
Session Management
- Uses
--session stagingfor isolated browser context - Session persists until explicitly closed with
agent-browser --session staging close