> ## Documentation Index
> Fetch the complete documentation index at: https://docs.edgespark.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# vars — EdgeSpark variables

> Read plain EdgeSpark runtime vars with vars.get, keep allowed keys typed in runtime.ts, and separate vars from secrets safely.

`vars` reads plain runtime configuration values from the current environment. Use it for non-sensitive values such as URLs, client IDs, feature flags, and log levels.

## `vars.get(name)`

Declare the key in `server/src/defs/runtime.ts`, then read it in your route code:

```typescript server/src/index.ts theme={null}
import { vars } from "edgespark";
import { Hono } from "hono";

const app = new Hono().get("/api/public/config", (c) => {
  return c.json({
    apiBaseUrl: vars.get("PUBLIC_API_BASE_URL"),
  });
});

export default app;
```

`vars.get(...)` returns `string | null`.

## Manage vars

```bash theme={null}
edgespark var list
edgespark var set PUBLIC_API_BASE_URL=https://api.example.com
edgespark var delete PUBLIC_API_BASE_URL
```

Use [platform limits](/reference/limits) for current var naming and quota constraints.

## See also

<Columns cols={2}>
  <Card title="Manage variables" icon="sliders-horizontal" href="/guides/variables">
    Set, delete, and organize runtime vars in the repo-based workflow.
  </Card>

  <Card title="secret reference" icon="key" href="/sdk/secrets">
    Use secrets instead when the value is sensitive.
  </Card>
</Columns>
