INNER CODE UNIT · Python

check_codex_authed

browser-use/bux · agent/box_agent.py:280

async def check_codex_authed() -> bool:
	"""Shell out to `codex login status`; return True iff logged in.

	Codex prints human-readable status (e.g. "Logged in using ChatGPT")
	on success and "not logged in" / "command not found" / similar on
	failure. Matching plain-text substrings keeps us forward-compatible
	with minor copy changes; the false case (CLI not installed, etc.)
	just keeps codex_authed=false until the user installs / signs in.

	The free DeepSeek path short-circuits this: it has no login, so an
	active `browser-use-free` profile counts as authed.
	"""
	if _codex_free_profile_active():
		return True
	try:
		proc = await asyncio.create_subprocess_exec(
			CODEX_BIN,
			'login',

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…