Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
b7be116
[PROD-871] gumloop browser proxy link keeps this computer connected i…
daniel-gumloop Nov 23, 2026
0fb9b5f
[PROD-871] connect forgets the registration only if it is still the u…
daniel-gumloop Nov 26, 2026
ba7d62c
[PROD-871] Signing out or unlinking while connected ends the tunnel a…
daniel-gumloop Nov 26, 2026
0a36cb2
[PROD-871] logout unlinks with the stored login, not a credential ove…
daniel-gumloop Nov 26, 2026
07a5c99
[PROD-871] The CLI names its tunnel version, stops when the gateway n…
daniel-gumloop Nov 26, 2026
01714e8
[PROD-871] Logging out ends an open tunnel within a minute, not at th…
daniel-gumloop Nov 26, 2026
b2189f6
[PROD-871] connect keeps a lost key's registration and stops on any r…
daniel-gumloop Nov 26, 2026
cb042c5
[PROD-871] link prints one message and warns when the background serv…
daniel-gumloop Nov 26, 2026
4e8cf0e
[PROD-871] connect keeps retrying while the org is in read-only mode
daniel-gumloop Nov 26, 2026
5f7635b
[PROD-871] logout revokes the refresh token that unlinking replaced
daniel-gumloop Nov 26, 2026
49dcdce
[PROD-871] logout revokes the stored refresh token at the backend it …
daniel-gumloop Nov 26, 2026
0f41e0b
[PROD-871] Trim the personal proxy command tests to the crucial cases
daniel-gumloop Nov 26, 2026
6166249
[PROD-871] link deletes a lost key's personal proxy before registerin…
daniel-gumloop Nov 26, 2026
7bd8bec
[PROD-871] unlink asks before deleting a linked computer's personal p…
daniel-gumloop Nov 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ curl -fsSL https://gumloop.com/cli/import-logins.sh | sh

Cookies only: local storage and IndexedDB stay on your machine, so sites that keep the session there ask the agent to sign in once, after which the agent's browser keeps it. Imported cookies are encrypted with the profile's own key before storage and are never shown back in the UI or API; sign-ins the agent picks up while running are saved back to the same profile. Rename, remove sites from, or delete profiles on the Secrets page in Gumloop.

### Let your agents' browser go out through this computer

Sites that only accept sign-ins from your network or your IP can be reached by linking this computer: your agents' browser connects to them from here. On macOS or Linux, after `gumloop login`:

```bash
gumloop browser proxy link # automatically runs in the background on startup
gumloop browser proxy status
gumloop browser proxy unlink
```

On Linux without a systemd user session, such as a container, `link` can't run it in the background. Run `gumloop browser proxy connect` and keep it open instead.

The computer only opens connections to public addresses on ports 80 and 443. Its key stays in the OS keychain. `gumloop logout` unlinks it. A network that inspects TLS traffic can't be used, since sites would show the agent's browser certificate errors.

### Sync a folder into your Brain

Mirror a local directory into a file-upload Brain source. Files are compared by name and sha256, so a re-run uploads only what changed; indexing starts on its own after each upload.
Expand Down Expand Up @@ -66,7 +80,7 @@ gumloop agents delete agent_abc --yes --json # no question; required with --
gumloop agents update agent_abc --inactive --yes
```

Every other command that deletes something asks the same way and takes the same `--yes`: `agents triggers delete`, `artifacts delete`, `brain sources delete`, `brain files delete`, `browser profiles delete`, `evaluations delete`, `sessions queue delete` and `skills delete`. Scripts that call them need `--yes` from version 0.5.16 on too. `brain sync --prune` does not ask: passing `--prune` is the confirmation.
Every other command that deletes something asks the same way and takes the same `--yes`: `agents triggers delete`, `artifacts delete`, `brain sources delete`, `brain files delete`, `browser profiles delete`, `evaluations delete`, `sessions queue delete`, `skills delete` and, when this computer is linked, `browser proxy unlink`. Scripts that call them need `--yes` from version 0.5.16 on too. `brain sync --prune` does not ask: passing `--prune` is the confirmation.

Agent session `create` and `send` accept `--stream`; combine with `--json` for NDJSON events, including cursors and terminal/error events. Reconnect with `gumloop sessions resume SESSION_ID --cursor LAST_STREAM_CURSOR --json` without resending a message. Human streams show text and resume cursors. `sessions create --metadata-json '{"source":"cli"}'` sets session metadata. Without `--stream`, create/send return the immediate session response and execution may continue asynchronously. Read the reply from `session.response` and `session.response_files`. Per message, `message.text` and `message.files` read a message's text and file parts.

Expand Down
1 change: 1 addition & 0 deletions docs/client-capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The feature parity audit adds client adapters over existing APIs and selected ba
| Company Brain search and uploaded-file sources | `client.brain` | `gumloop brain` |
| Generated file metadata, downloads, rename, delete, versions, and sharing | `client.artifacts` | `gumloop artifacts` |
| Personal browser profile CRUD and existing listing/cookie import | `client.browser_profiles` | `gumloop browser` |
| Linking this computer for agents' browser traffic | `client.custom_proxies` (list, register, set default and delete) | `gumloop browser proxy` |
| Connected Brain source inspection, sync history, issues, indexed children, and sync requests | `client.brain` | `gumloop brain sources` |
| Integration trigger catalog, account selection/configuration, and run history | `client.agents` trigger methods | `gumloop agents triggers` |
| Team and organization membership discovery | `client.teams.list`, `client.organizations.list` | `gumloop teams list`, `gumloop organizations list` |
Expand Down
2 changes: 1 addition & 1 deletion src/gumloop/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from __future__ import annotations

__version__ = "0.5.16"
__version__ = "0.5.17"
38 changes: 34 additions & 4 deletions src/gumloop/cli/commands/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,23 @@
from typing import Annotated
from typing import Literal

import httpx
import questionary
import typer
from rich.markup import escape as escape_markup
from rich.prompt import Prompt

from gumloop import Gumloop
from gumloop import GumloopError
from gumloop._client import DEFAULT_BASE_URL
from gumloop.cli.commands.custom_proxy import remove_stored_login_custom_proxy
from gumloop.cli.console import console
from gumloop.cli.console import print_json
from gumloop.cli.context import CliContext
from gumloop.cli.credentials import Credentials
from gumloop.cli.credentials import clear_credentials
from gumloop.cli.credentials import keyring_backend_name
from gumloop.cli.credentials import load_credentials
from gumloop.cli.credentials import save_credentials
from gumloop.cli.errors import exit_with_error
from gumloop.cli.oauth import DEFAULT_REDIRECT_PORT
Expand Down Expand Up @@ -202,27 +207,47 @@ def logout(
typer.Option("--json", help="Print the result as JSON."),
] = False,
) -> None:
"""Clear stored Gumloop credentials."""
"""Clear stored Gumloop credentials, and unlink this computer."""
cli: CliContext = ctx.obj

# Before the revoke, which would leave no login to delete the personal proxy with.
custom_proxy_removed = False
custom_proxy_error: str | None = None
try:
custom_proxy_removed = remove_stored_login_custom_proxy()
except (GumloopError, httpx.HTTPError) as error:
custom_proxy_error = str(error)

# Server-side revoke first so the refresh token can't outlive the
# local logout. Revoke failures never block the local clear.
oauth_revoked = False
revoke_failed = False
if cli.effective_auth_method == METHOD_OAUTH:
token = cli.credentials.refresh_token or cli.credentials.access_token
if cli.credentials.refresh_token:
# The unlink may have refreshed the stored login, which replaces its refresh token.
token = load_credentials().refresh_token or cli.credentials.refresh_token
revoke_url = cli.credentials.base_url or DEFAULT_BASE_URL
else:
token = cli.credentials.access_token
revoke_url = cli.effective_base_url
if token:
try:
revoke_oauth_token(base_url=cli.effective_base_url, token=token)
revoke_oauth_token(base_url=revoke_url, token=token)
oauth_revoked = True
except Exception:
revoke_failed = True

clear_credentials()

payload: dict[str, object] = {"status": "ok", "oauth_revoked": oauth_revoked}
payload: dict[str, object] = {
"status": "ok",
"oauth_revoked": oauth_revoked,
"custom_proxy_removed": custom_proxy_removed,
}
if revoke_failed:
payload["oauth_revoke_failed"] = True
if custom_proxy_error is not None:
payload["custom_proxy_remove_failed"] = True

if json_output:
print_json(payload)
Expand All @@ -234,3 +259,8 @@ def logout(
"[yellow]Note:[/yellow] could not reach the server to revoke the refresh token; "
"it will remain valid until it expires."
)
if custom_proxy_error is not None:
console.print(
"[yellow]Note:[/yellow] could not unlink this computer "
f"({escape_markup(custom_proxy_error)}). Log in again and run `gumloop browser proxy unlink`."
)
4 changes: 3 additions & 1 deletion src/gumloop/cli/commands/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from gumloop.browser_logins.chromium_cookies import KeychainAccessError
from gumloop.cli.commands._confirmation import Yes
from gumloop.cli.commands._confirmation import confirm_or_exit
from gumloop.cli.commands.custom_proxy import proxy_app
from gumloop.cli.console import console
from gumloop.cli.console import print_json
from gumloop.cli.context import CliContext
Expand All @@ -30,12 +31,13 @@
from gumloop.types import BrowserProfileImportSummary

browser_app = typer.Typer(
help="Bring your browser sign-ins to Gumloop agents.",
help="Bring your browser sign-ins, and this computer's network, to Gumloop agents.",
no_args_is_help=True,
rich_markup_mode="rich",
)
profiles_app = typer.Typer(help="Manage browser profiles.", no_args_is_help=True, rich_markup_mode="rich")
browser_app.add_typer(profiles_app, name="profiles")
browser_app.add_typer(proxy_app, name="proxy")


def _pick_local_profile(browser: str | None, browser_profile: str | None, *, non_interactive: bool) -> LocalProfile:
Expand Down
Loading
Loading