Repository navigation
Expand file tree
/
Copy pathsurface.example.toml
More file actions
91 lines (82 loc) · 4.29 KB
/
Copy pathsurface.example.toml
File metadata and controls
91 lines (82 loc) · 4.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# surface configuration — every setting is optional.
#
# surface works with no config file at all; this documents the defaults. Copy it
# to the path `surface --check` reports as the config directory, as `surface.toml`.
#
# macOS ~/Library/Application Support/ai.holistic.surface/surface.toml
# Linux ~/.config/surface/surface.toml
# Windows %APPDATA%\holistic\surface\config\surface.toml
# ----------------------------------------------------------------- AI sites
#
# Read browser history for visits to known AI domains. Only the domain, a visit
# count and a last-seen date are read: the domain filter runs inside SQLite, so
# no URL, path, query string or page title is ever loaded — not even for the AI
# domains themselves, let alone the rest of your browsing.
[web]
# Set false to skip browser history entirely. The Sites view then says it is
# switched off rather than showing an empty list.
scan_history = true
# How recently a domain must have been visited to appear. Visit counts are the
# browser's lifetime totals; this only decides which domains are listed.
history_lookback_days = 30
# Extra domains to treat as AI services — an internal model gateway, say.
# Matched on the registrable host, so "models.corp.example" also covers
# "www.models.corp.example" but never "notmodels.corp.example".
extra_ai_domains = []
# --------------------------------------------------------------- token usage
#
# Read the transcripts Claude Code, Codex and OpenCode already write, to count
# tokens per day, tool and model. Message content is never read.
[usage]
# Set false to skip transcripts entirely.
scan = true
# How many days of daily totals to keep. Older days are pruned from the ledger,
# along with their deduplication keys.
window_days = 30
# Project rows to fold into another, "shown name" = "fold into". The same
# project legitimately earns two names — a checkout with an `origin` remote
# reports owner/name, a copy of the same code with no remote reports its
# folder basename — and surface never guesses that two names are one project.
# Declare it here instead. Applied when the ledger is read, so history
# regroups retroactively and a wrong alias is one edit away from undone.
# [usage.repo_aliases]
# "HAI Neo" = "holistic-ai/hai-neo"
# ---------------------------------------------------------------------- cost
#
# surface prices tokens at API rates. If you pay a flat subscription instead,
# tell it what you actually pay and the Cost view will compare the two.
[cost]
# Monthly spend per tool, in USD. Keys are tool ids as they appear in the Usage
# view: claude_code, codex, opencode, gemini_cli, ...
#
# Without an entry here, a tool falls back to the plan it names itself — in its
# account file (~/.claude.json, ~/.codex/auth.json) or beside the token counts
# in its transcripts — priced at that plan's list rate and marked an estimate.
# Only the plan's name is read from those files, never the credentials beside
# it. A tool naming no plan gets no row at all, and an entry here always wins.
[cost.subscriptions]
# claude_code = 100.0
# codex = 30.0
# The plan a tool is on, where the tool's own files cannot say. Values are plan
# slugs; a slug here outranks both the account file and the transcripts, and is
# priced at that plan's list rate — so it stays marked an estimate, while the
# plan's name comes out right everywhere it is shown.
#
# ChatGPT Business is why this exists: standard seats are $25/month and premium
# seats $125, and chatgpt_plan_type reads `team` for both. Nothing on disk tells
# them apart, so a premium seat prices as a standard one until declared here.
#
# Use [cost.subscriptions] instead when the rate is yours rather than published
# — an enterprise agreement, say. It wins over anything set here.
[cost.plans]
# codex = "team_premium"
# ------------------------------------------------------------ env overrides
#
# Environment variables win over this file, and are handy for one-off runs:
#
# SURFACE_STATE_DIR where the ledger and price cache live
# SURFACE_CONFIG_DIR where this file is looked for
# SURFACE_SCAN_HISTORY=false same as [web] scan_history
# SURFACE_HISTORY_LOOKBACK_DAYS same as [web] history_lookback_days
# SURFACE_SCAN_USAGE=false same as [usage] scan
# SURFACE_USAGE_WINDOW_DAYS same as [usage] window_days