Skip to content
This repository was archived by the owner on Feb 28, 2026. It is now read-only.

Commit c2f4f61

Browse files
committed
docs: update antigravity debugging instructions
1 parent e832f54 commit c2f4f61

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,19 @@ You should copy that config to your opencode config file.
268268

269269
## Debugging Antigravity Requests
270270

271-
Set `OPENCODE_ANTIGRAVITY_DEBUG=1` to capture Antigravity request/response logs. Logs are written to `antigravity-debug-<ISO>.log` in the current working directory.
271+
Use OpenCode's built-in logging to debug Antigravity requests:
272272

273273
```bash
274-
OPENCODE_ANTIGRAVITY_DEBUG=1 opencode
274+
opencode --log-level DEBUG --print-logs
275275
```
276276

277-
Authorization headers are redacted; payload previews are truncated to 2 KB.
277+
Or just set the log level and check the log files:
278+
279+
```bash
280+
opencode --log-level DEBUG
281+
```
282+
283+
Log files are stored in `~/.local/share/opencode/logs/` (or `$XDG_DATA_HOME/opencode/logs/`).
278284

279285
## How to test with Opencode
280286

0 commit comments

Comments
 (0)