# get_status

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/integrations/openai_codex/get_status)

Return the current ChatGPT OAuth sign-in state.

Reads the on-disk token *without* triggering a refresh (a passive
inspect, suitable for switcher labels and the `/auth` manager). If a
refresh is needed for actual usage, callers should construct a
`_FileChatGPTOAuthTokenProvider` and call `get_token()` instead.

## Signature

```python
get_status(
    *,
    store_path: Path | None = None,
) -> CodexAuthStatus
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `store_path` | `Path \| None` | No | Override the token store path. Defaults to `default_store_path()` (`~/.deepagents/.state/chatgpt-auth.json`). (default: `None`) |

## Returns

`CodexAuthStatus`

A `CodexAuthStatus` populated from the on-disk token, or one with
`logged_in=False` when no token exists or the file is unreadable.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/integrations/openai_codex.py#L136)