You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/AI_QUICK_START.md
+20-7Lines changed: 20 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,13 +72,22 @@ The Knowledge Base artifact allows you to start quickly, but you still need a Ge
72
72
73
73
### Step 3.3: Configure Your Local Environment
74
74
75
-
1. **Navigate to Repo Root**: Make sure you are in the root directory of your cloned `neo` repository.
76
-
2. **Create `.env` file**: Create a new file named `.env`.
77
-
3. **Add API Key**: Add the following line to the `.env` file, replacing `YOUR_API_KEY_HERE` with the key you just copied:
78
-
```
79
-
GEMINI_API_KEY="YOUR_API_KEY_HERE"
75
+
**Highly Recommended: Global Shell Profiles over `.env` Files**
76
+
77
+
When an AI Agent (e.g., Antigravity OS) is launched as a native macOS desktop GUI application (like clicking an icon in your Dock), it operates outside traditional terminal architectures. This means it frequently bypasses localized `.env` file resolutions within specific repository working directories.
78
+
79
+
To ensure your environment is accurately inherited across all local MCP sub-servers dynamically, it is heavily recommended to export your API keys directly into your global shell profiles:
80
+
81
+
1. **Open your shell profile**: `nano ~/.zshrc` (or `~/.zprofile`)
82
+
2. **Add your keys**: Add the following lines, replacing the placeholder keys:
83
+
```bash
84
+
export GEMINI_API_KEY="YOUR_API_KEY_HERE"
85
+
export GH_TOKEN="YOUR_GITHUB_TOKEN_HERE"
86
+
export NEO_EMBEDDING_PROVIDER="gemini"# or "ollama" for 100% offline
80
87
```
81
-
This file is already listed in`.gitignore` to prevent you from accidentally committing your key.
88
+
3. **Apply changes**: `source ~/.zshrc`
89
+
90
+
*Alternative (Classic `.env`)*: If you strictly prefer `.env`, create a `.env` file at the root of the `neo` directory with those exact variables. However, if MCP servers fail to authenticate or throw dimension mismatch errors, migrating to global exports is your immediate architectural fix.
82
91
83
92
### Step 3.4: Understanding the Workflow
84
93
@@ -92,6 +101,9 @@ The free tier of the Gemini API has a strict limit of **1,000 requests per day**
92
101
***Do NOT** run `npm run ai:sync-kb` (full rebuild) unless absolutely necessary. A full rebuild requires ~153 requests and takes ~25 minutes due to rate-limiting delays.
93
102
* The pre-built artifact saves you from this cost and delay.
94
103
104
+
**Local Architecture (Ollama Integration):**
105
+
To completely bypass Gemini API limits and operate a 100% offline knowledge base, you can utilize the local inference loop. Export `NEO_EMBEDDING_PROVIDER="ollama"`in your environment variables. Ensure the corresponding Ollama embedding models are running locally.
106
+
95
107
### Step 3.5: Advanced Configuration (Optional)
96
108
97
109
You can tune the embedding process (e.g., for paid tier usage) by modifying `ai/mcp/server/knowledge-base/config.mjs` or by loading a custom config file.
@@ -126,7 +138,8 @@ The repository provides a `.gemini/settings.json` file which automatically activ
126
138
### Core Configuration (Antigravity OS)
127
139
Antigravity requires a user-level configuration file located at `~/.gemini/antigravity/mcp_config.json`. You must create this file and configure it with your API keys and local paths.
128
140
129
-
- **`<DEFAULT_PATH>`**: Your system's default `PATH` environment variable (e.g., on macOS this typically looks like `/usr/local/bin:/usr/local/sbin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin`).
141
+
- **`<DEFAULT_PATH>`**: Your system's default `PATH` environment variable.
142
+
- **M-Series Mac Warning (Apple Silicon):** Desktop GUI applications do**not** inherit Homebrew paths like `/opt/homebrew/bin` since macOS strips out `.zshrc` upon GUI Spotlight launch. If your GitHub CLI (`gh`) or `sqlite3` were installed via Homebrew, you **must** manually prepend `/opt/homebrew/bin:` to this `<DEFAULT_PATH>` string (or symlink them into `/usr/local/bin` using `sudo`), otherwise your MCP servers will silently crash claiming binaries are missing!
130
143
- **`<YOUR_NODE_PATH>`**: The absolute path to your Node.js executable (e.g., `/usr/local/bin/node` or `~/.nvm/versions/node/v20.x.x/bin/node`).
0 commit comments