https://github.com/jamubc/agy-for-grok-build
https://github.com/jamubc/agy-for-grok-build
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jamubc/agy-for-grok-build
- Owner: jamubc
- License: mit
- Created: 2026-06-01T12:15:18.000Z (11 days ago)
- Default Branch: main
- Last Pushed: 2026-06-01T13:07:18.000Z (11 days ago)
- Last Synced: 2026-06-01T14:13:05.334Z (11 days ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# agy-for-grok-build





Give Grok Build access to Antigravity CLI OAuth models.
It installs a `grok-agy` command:
```bash
grok-agy -p "Say ok"
```
`grok-agy` starts Grok Build with `-m agy`. The `grok-agy` wrapper spins up a Node-native, inline, zero-dependency OpenAI-compatible proxy server on port `8318` while Grok is running, and shuts it down on exit.
Default model:
```toml
model = "gemini-3.5-flash"
```
## What It Does
- Spins up an inline local proxy server on `127.0.0.1:8318` when `grok-agy` is launched.
- Routes `/v1/chat/completions` requests from Grok directly to the local `agy` CLI command.
- Adds Grok model configuration for `agy` targeting the inline server.
- Adds command `grok-agy`.
## Prerequisites
- macOS.
- Node.js ≥ 18.
- Grok Build installed at `~/.grok/bin/grok` or available as `grok`.
- Antigravity CLI (`agy`) installed and authenticated.
## Install
```bash
node lib/install.js
```
Or via npm script:
```bash
npm run install-proxy
```
Verify:
```bash
grok-agy -p "Say ok"
```
Check the model:
```bash
grep -A7 '^\[model.agy\]' ~/.grok/config.toml
```
## Models
Exposed Antigravity models:
- `gemini-3.5-flash`
- `gemini-3-pro`
- `gemini-3-pro-thinking`
- `gemini-2.5-pro`
- `gemini-2.5-flash`
`agy` is pinned to `gemini-3.5-flash` by default.
## Security
Generated local proxy key:
```text
~/.cli-proxy-api/grok-agy.env
```
Do not commit this file.