> For the complete documentation index, see [llms.txt](https://robodex.gitbook.io/robodex-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://robodex.gitbook.io/robodex-docs/operations/environment.md).

# Environment

## Product API

| Variable                  | Purpose                                       |
| ------------------------- | --------------------------------------------- |
| `WORKSPACE_DB_PATH`       | Override local SQLite workspace database path |
| `SKIP_YOUTUBE_SEARCH`     | Skip YouTube search in ingest when set to `1` |
| `EVOLUTION_ARTIFACTS_DIR` | Override local evolution artifact directory   |
| `NEXT_PUBLIC_API_URL`     | Frontend base URL for the API                 |

Default workspace database:

```
/tmp/il_ideation/workspace.sqlite3
```

## Research LLM provider

| Variable                             | Purpose                                                          |
| ------------------------------------ | ---------------------------------------------------------------- |
| `RESEARCH_LLM_PROVIDER`              | Select local or remote model provider                            |
| `RESEARCH_USE_LANGGRAPH_AUTO_INVOKE` | Enable automatic LangGraph invocation for supported legacy paths |

Common provider values:

```bash
export RESEARCH_LLM_PROVIDER=codex
export RESEARCH_LLM_PROVIDER=claude-code
export RESEARCH_LLM_PROVIDER=openai
```

Use `packages/research/local_chat_models.py` factory helpers instead of direct provider imports.

## External services

The repo contains integrations or hooks for:

* Supabase,
* LangSmith,
* Google/Gemini,
* YouTube/reference search,
* GVHMR dispatch,
* Modal trial dispatch,
* MuJoCo screening,
* GitBook docs publishing.

Not all of these are required for local smoke tests. When documenting evidence, state which external services were actually reachable.

## Local-first development

Many core paths work without external services:

* deterministic grammar fallback,
* local workspace database,
* route unit tests,
* frontend contract tests,
* documentation validation,
* research core tests.

This is intentional. A missing networked service should not make every developer flow unusable.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://robodex.gitbook.io/robodex-docs/operations/environment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
