You can use other agents, but this recipe uses Claude Code.
- Follow instructions here (just step 1): https://code.claude.com/docs/en/quickstart
- If you have your own Anthropic account (encouraged) follow the login instructions.
git clone https://github.com/NCATSTranslator/text-query
cd text-queryIf you have your own Claude Code max account, skip to step 6!
cp .env-example .env- Get a key from Sierra Moxon.
mv ~/Downloads/translator-microbiome-*.json ~/.config/gcloud/translator-microbiome-key.jsonOpen .env and replace the placeholder values:
export CLAUDE_CODE_USE_VERTEX=1
export CLOUD_ML_REGION=us-east5
export ANTHROPIC_VERTEX_PROJECT_ID=translator-microbiome
export GOOGLE_CLOUD_PROJECT=translator-microbiome
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your/translator-microbiome-key.jsonReplace /path/to/your/translator-microbiome-key.json with the actual path from step 3. For example:
source .env
claudeClaude Code will now use Vertex AI with the translator-microbiome project.
Claude Code will read the skills in this cloned project, and have access immediately to some command line skills that we provide, including translator-query
source_data % claude
▗ ▗ ▖ ▖ Claude Code v2.1.85
Opus 4.6 (1M context) · Claude Max
▘▘ ▝▝ ~/Documents/source_data
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯ /translator-query How Are Microbiome Communities in the Skin Affected by Changes in ABCC11?
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
? for shortcuts