Create Custom Provider
gv_create_providerCreate a custom login provider recipe for any website. Define login URL, success indicators, and auth cookies to enable automated account creation and sign-in.
Instructions
Create a custom login provider recipe for any website.
Once created, use it with gv_create_account(provider=name) or
gv_sign_in(account_id, provider=name). The provider recipe is stored
in ~/.ghostvault/providers.json and shared across all accounts.
Args: name: Unique provider name (e.g. "my_bank"). Cannot shadow built-ins. login_url: The URL to navigate to for login (e.g. "https://app.example.com/login"). success_url_fragments: URL fragments indicating login succeeded (e.g. ["app.example.com/dashboard"]). auth_cookie_names: Cookie names that prove authentication (e.g. ["session_id"]). auth_cookie_domain: The domain to read auth cookies from (e.g. "https://app.example.com"). logout_url: Optional direct logout URL. If None, user must logout manually. session_probe_url: Optional URL to check if session is still valid. login_url_fragments: URL fragments indicating redirect to login (session expired). description: Human-readable description of this provider.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| login_url | Yes | ||
| logout_url | No | ||
| description | No | ||
| auth_cookie_names | Yes | ||
| session_probe_url | No | ||
| auth_cookie_domain | Yes | ||
| login_url_fragments | No | ||
| success_url_fragments | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |