• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
ianvph

ianvph

pr-reviewer

Public
Like
1
pr-reviewer
Home
Code
12
README.md
claude.ts
H
debug.ts
example-env.md
github.ts
H
index.ts
main.ts
H
test-markdown.ts
test-suggestions.ts
H
test.ts
utils.ts
H
webhook-test.ts
Branches
1
Pull requests
Remixes
History
Environment variables
3
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
example-env.md
Code
/
example-env.md
Search
…
example-env.md

Example Environment Variables

Copy these to your Val Town environment variables section:

Required Variables

GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ANTHROPIC_API_KEY=sk-ant-api03-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
WEBHOOK_SECRET=a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456

How to Generate Each Variable

GITHUB_TOKEN

  1. Go to https://github.com/settings/personal-access-tokens/new
  2. Select "Fine-grained personal access token"
  3. Choose your repository
  4. Set permissions:
    • Metadata: Read
    • Contents: Read
    • Pull requests: Read and write
  5. Generate token and copy the value

ANTHROPIC_API_KEY

  1. Go to https://console.anthropic.com/
  2. Sign up/login
  3. Go to API Keys section
  4. Create new key
  5. Copy the key (starts with sk-ant-api03-)

WEBHOOK_SECRET

Generate a random string:

# On Mac/Linux: openssl rand -hex 32 # Or use any random string generator # Example: a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456

Setting Variables in Val Town

  1. Go to your Val Town dashboard
  2. Click on Settings (gear icon)
  3. Go to Environment Variables
  4. Add each variable name and value
  5. Save changes

The variables will be available to all your vals via Deno.env.get('VARIABLE_NAME').

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.