Platform
Customers, projects and clients
See what AI costs you per customer and per client project, and what margin each one leaves. Share project progress with your clients through a simple portal.
Related guide: LLM cost per customer
Token Meter has two related areas. You find both in the dashboard sidebar.
- Customers (in the sidebar's Home view) is for products that serve many end customers. It lists every customer your AI calls are tagged with, what they cost you, and the margin left after the revenue you enter.
- Projects and Clients are for client work, such as an agency's. Each project belongs to one client. You can share it with that client's people through the client portal and see the project's AI cost and margin. Switch the sidebar to its Coding tools view (the icon tabs at the top) to see them.
Before you start
- For Customers: the Owner or Admin role. Cost and usage per customer are on every plan; revenue and margin are on Growth and above.
- For Projects and Clients: client work must be switched on for your workspace. Owners and Admins add clients, contacts and projects.
- To invite client contacts: your own account email must be verified.
- To tag usage from code: an ingest key (a password that lets your app send usage to Token Meter). It starts with
tl_live_. Create one at Governance › API keys › Create key; it is shown once, so copy it then. Owners, Admins and Team leads can create keys.
Don't see Projects and Clients?
They appear in the sidebar's Coding tools view only where client work is available. Clients shows only for Owners and Admins. Other members see Projects, listing only the projects they have a role on.Tag usage with a customer and project
Providers' bills don't say which of your customers or projects a call was for. You add that at the call, with two tags:
- Customer reference (
customer_ref): who the call served, e.g.acme. This fills the Customers page. - Project tag (
project): which client project the call was for, e.g.acme-website. A project's AI cost rule picks it up (see Project AI cost and margin).
Rules for the values
| Tag | Format | If the value breaks the rule |
|---|---|---|
| Project tag | Lowercased, then 1 to 64 characters: letters, digits, . _ : -. It must start with a letter or digit. Example: acme-website. No spaces. | The tag is dropped without an error, and that usage has no project. Acme Website is dropped; Acme-Website is stored as acme-website. |
| Customer reference | Free text, trimmed, lowercased and cut to 200 characters. Use an opaque id from your own system, such as acme or cus_1042. | A value that contains an email address, phone number, IP address, card number or something that looks like an API key or secret (including a 40-character string of letters and digits) is stored as a keyed pseudonym, e.g. email~3f9a1c2b7d5e0a41 (a hash under your workspace's own key), never as sent. Each such customer keeps its own row, shown as “Email customer 3f9a1c2b”; search the list with the email to find it. Revenue, rules and budgets you type with the email use the same key. |
Steps
- Choose your values. Use the same customer reference everywhere for one customer. Use one project tag per client project.
- Decide how your app calls AI models. If it calls OpenAI, Anthropic or another provider directly, use the Token Meter SDK (option A). If it sends calls through the Token Meter Router (our gateway at
https://router.timewastevc.com), add two fields to the request body (option B). - Add the tags to the code that serves that customer or project, as in the examples below. Use the Python / TypeScript switch at the top of the page to pick a language.
- Run your app, then open Customers in the dashboard. The customer appears in the list once the first tagged call arrives, usually within a minute.
Option A: the SDK
Wrap the code that serves one customer in action(). In Python the customer argument is customer_id= (customer_ref= also works). In TypeScript it is customerRef. The project argument is project in both. Every wrapped AI call inside the block gets the tags.
// Install: npm install @tokenmeter/sdk openai (Node 20.6 or later)
// Save as report.mts and run: npx tsx report.mts
// Before running, set TOKEN_METER_KEY (your tl_live_… key) and OPENAI_API_KEY.
import OpenAI from "openai";
import { TokenMeterClient, action, wrapOpenAI } from "@tokenmeter/sdk";
const tl = new TokenMeterClient({ apiKey: process.env.TOKEN_METER_KEY! });
const openai = wrapOpenAI(new OpenAI(), tl);
await action("generate-report", { customerRef: "acme", project: "acme-website" }, async () => {
const response = await openai.chat.completions.create({
model: "gpt-4o-mini",
messages: [{ role: "user", content: "Write a short status report." }],
});
console.log(response.choices[0].message.content);
});
// Send buffered usage before the process exits.
await tl.flush();See Attribution for the other tags (feature, team, environment) and nested actions.
Option B: the Router
Send customer_ref and project as top-level fields of the request body. The Router records them and removes them before the call goes to the provider. Your key is the same tl_live_… key. With model: "auto" you don't need a provider key of your own: on a paid plan, auto runs on Token Meter's keys up to your plan's monthly allowance, or from your router credits when credits are on. On Free, auto needs router credits, or a routing policy that claims the request (it then runs on your own provider key); otherwise name a model (for example gpt-4o-mini) and add your own provider key under Router › Providers.
// Install: npm install openai
// Save as report.mts and run: npx tsx report.mts
// Before running, set TOKEN_METER_KEY (your tl_live_… key).
import OpenAI from "openai";
const openai = new OpenAI({
baseURL: "https://router.timewastevc.com/v1",
apiKey: process.env.TOKEN_METER_KEY,
});
// Built as a variable, so TypeScript accepts the extra fields the OpenAI types don't list.
const body = {
model: "auto",
messages: [{ role: "user" as const, content: "Write a short status report." }],
customer_ref: "acme",
project: "acme-website",
};
const response = await openai.chat.completions.create(body);
console.log(response.choices[0].message.content);To try it from a terminal, without writing code:
curl https://router.timewastevc.com/v1/chat/completions \
-H "Authorization: Bearer $TOKEN_METER_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "auto",
"messages": [{"role": "user", "content": "Write a short status report."}],
"customer_ref": "acme",
"project": "acme-website"
}'See Router › Attribution for every field the Router accepts.
Customers and margin
Where customers come from
A customer appears on Customers as soon as usage tagged with its customer reference arrives for the month you are viewing. There is no list to create first. Usage without a customer still counts in every other total; it just isn't listed here.
When the current month has no tagged calls yet, the page shows No customer traffic yet. with a snippet to copy. A past month with none shows No customer activity in that month.
The customer list
The page shows one month at a time. Use the month buttons at the top (the month before, the month shown and, for a past month, the month after) to move between months.
| Tile | What it shows |
|---|---|
| Revenue | The revenue you entered for this month, summed over the listed customers that have revenue. The hint counts them. Shown once at least one customer has revenue. |
| Cost | AI cost of every listed customer this month. When some customers have no revenue, the hint gives the part that belongs to customers with revenue. |
| Margin | Revenue minus cost for customers with revenue, labelled confirmed, a range, or not yet reconciled (see below). |
| Losing money | How many customers cost more than their revenue this month. Shown only when there is at least one; Successful requests then moves under More detail. |
| Successful requests | Requests that succeeded, out of all requests tagged with a customer, with the number that failed. |
| Customers | How many customers are listed. Shown instead of Revenue and Margin while no listed customer has revenue for the month (always on Free). |
The table lists Customer, Last seen (UTC), Requests and Cost, plus Margin on Growth and above once at least one customer has revenue for the month. Click a column heading to sort by it. A customer without revenue for the month shows an Add revenue link in the Margin column.
If your workspace is over its plan's usage limit and the grace period has ended, this page shows the current month only.
Enter revenue
Revenue is one number per customer per month, in USD: what you charge the customer, not what they cost you. Token Meter does not read it from a billing system. Entering a month that already has revenue replaces it.
On Free the page shows cost and usage only, with an upgrade notice in place of revenue and margin. Free also shows only the last 90 days.
For one customer:
- Open Customers and click the customer.
- Under Enter revenue, pick the Month and type the Revenue (USD).
- Click Save. Revenue saved. appears, and the Margin this month tile fills in.
For many customers at once:
- On Customers, click Import revenue.
- Paste rows of
customer_ref,month,revenue_usd, with the month asYYYY-MM. The header row is optional. - Click Import. The page reports how many rows were imported and how many were skipped.
customer_ref,month,revenue_usd
acme,2026-08,4200
nimbus-logistics,2026-08,5200Rows with a bad month, amount or customer reference (empty, or an email address) are skipped. The import is all or nothing: either every valid row is saved or none is. Write each customer reference as it appears in the Customer column. Case does not matter: references are stored in lowercase, so revenue for Acme matches usage recorded as acme.
A customer's page
Click a customer to open its page. At the top are three tiles (two on Free, without Margin this month):
- Cost this month and Calls this month.
- Margin this month, with revenue, cost and one sentence on how sure the figure is. Until you enter this month's revenue it reads Needs revenue.
Below them:
- Cost trend for the last 30, 90 or 180 days. Solid means provider-confirmed events; hatched (≈) is estimated. If all the calls in the window were on one day, you see a sentence instead of a chart (“All N calls were on <day> and cost $X”).
- Requests: the newest 25 calls tagged with this customer in the chosen window (up to 90 days, including today), with a View all link to the full list.
- Top actions: the 10 most expensive
actionnames for this customer, with events, traces, average cost per trace and errors. - Revenue history: the last 12 months of revenue you entered, with when each was last changed.
How customer margin works
Margin is revenue minus the customer's AI cost for the month. Providers don't say which of your customers an invoice line belongs to. So Token Meter compares your metered cost (what it recorded) with your providers' bills for the month (see AI Bill). It then labels the margin with one of three states:
| State | When | What is shown |
|---|---|---|
| confirmed | Billing was reconciled for the month, and metered cost is within 2% of the bill. | One figure. |
| range (coverage gap) | Metered cost and the bill differ by more than 2%. | A range between revenue − cost and revenue − cost ÷ coverage ratio: one end assumes none of the gap is this customer's, the other that all of it is. |
| not yet reconciled | No reconciliation has run for the month, or metered and billed totals are too far apart to compare. | One figure, revenue − cost, never labelled confirmed. |
The coverage ratio is one workspace-wide number (metered cost ÷ billed cost for the month). It is applied to every customer the same way.
Clients and contacts
A client is a person or company you do work for. A contact is one person at that client who can see your work in the client portal. Owners and Admins manage both.
Add a client
- Open Clients (Coding tools view) and click Add client.
- Type the Client name. Optionally type a First project title to create the project at the same time.
- Click Add client. The client's page opens with Client created. (or Client and project created.).
Add a contact
- Open Clients (Coding tools view) and click the client.
- Under Contacts, type the person's Name and Email.
- To invite them now, choose a project in Give access to a project and a Role on that project: Guest (can view) or Approver (can approve requests). To add them without inviting, leave None for now (no email is sent).
- Click Add contact. With a project chosen, you see Contact added and invitation sent. (or that it is queued and will go out within a minute).
Each email address can belong to only one contact in the workspace. Each contact shows where their invitation stands: No invitation yet, Queued, Retrying, Sent, Opened (with the date last viewed), Link expired, Not delivered, Not sent, Email bounced or Access ended.
Archive or anonymise
- Archive a contact to end their access to every project at once. Adding the same address to the same client again brings them back as a new invite.
- Anonymise removes the contact's name and email. Their past comments and approvals stay, shown as “Former contact”.
- Archive client (under Danger zone on the client's page) archives all its contacts and ends their access to every project.
Projects
Every project belongs to one client. Nothing in a project is visible to the client until you publish it.
Create a project
- Open Projects (Coding tools view) and click New project. If you have no client yet, the page asks you to add one first.
- Type a Title, choose the Client, and optionally set a Target date.
- Click Create project.
Use Edit details on the project to change its title, description, target date, status (Draft, Active, On hold, Completed, Archived) and health (On track, Needs client input, At risk, Completed). The client sees these, so only a project lead or an Admin can change them. Only Owners and Admins can set Archived.
The project list puts at-risk projects first and shows Active, At risk, Needs client and Drafts waiting counts.
The project tabs
- Delivery: Milestones (internal until you choose Show to client), Updates (saved as drafts; Publish to client when ready; a published update is read-only until you Unpublish it), and Deliverables (links to staging sites, designs, documents, pull requests and demos, each published separately; links must be https).
- Client: Client access (grant, resend or revoke), Requests and General discussion. Only people who can publish to the client see this tab.
- Integrations: linked GitHub repositories and the AI cost mapping rules (see below). Linking a repository reads only activity counts: no code, diffs or commit messages. With linked repositories you can draft an update from pull requests merged in the last 30 days; it is saved as a draft.
- Financials: quote, invoicing, expenses and margin. You see it only if you hold the owner, CTO or CFO billing role and can open the project (Owners, Admins, or anyone with a role on it).
- Team and notes: internal notes (never shown to clients), the project team, and Archive project.
Requests
On the Client tab, click New request and pick what it is:
- Approval of something they can see: needs a published update, published link or client-visible milestone as its subject, and at least one contact with the Approver role.
- A decision I need from them, or Feedback: a subject is optional.
Approvers are emailed when the request is sent and get reminders while it stays pending. An approval is tied to the exact content it was sent with. If you edit, unpublish or hide that content, or archive the project, the pending request is withdrawn, and the client sees it as withdrawn. You can also Withdraw request yourself.
Your replies in a request or in General discussion are visible to the client. The contacts concerned get an email saying there is a reply (at most one per contact per project per hour). The email carries no message text and no sign-in link. Client responses and comments reach you in a digest email.
Project members
Owners and Admins open every project. Anyone else needs a role on the project. An Admin sets it on the Team and notes tab with Add to project:
- Contributor edits the working content: internal milestones, update drafts, deliverable links and notes.
- Lead also publishes to the client, gives existing contacts access, sends requests, edits the project details and AI cost rules, and unlinks repositories.
Members without a role on a project don't see it in the list. Money is never part of a project role.
Live refresh
An open project page checks for changes every 20 seconds while the tab is visible. It reloads its data when anything on the project changes: a client response or message, an invitation opened or delivered, or a teammate's publish. Forms you are filling in are left alone.
Project AI cost and margin
Connect a project to your usage
A rule tells Token Meter which tagged usage belongs to a project. You need to be a project lead or an Admin.
- Open the project and go to the Integrations tab.
- Click Add rule.
- Choose Project tag (matches usage sent with that
projecttag) or Customer reference (matches usage sent with thatcustomer_ref). - Type the value exactly as your code sends it, e.g.
acme-website, and click Add rule. You see Rule added. and the rule appears under AI cost mapping.
Project tags follow the format in the rules above; the form refuses any other format. Each tag or customer reference can belong to only one project in the workspace, so the same usage is never counted twice.
A linked GitHub repository adds an estimated cost: each person's vendor-reported daily spend, spread over the repositories they committed to that day. It is a separate source from tagged usage, so spend that appears in both is counted in both.
Record the money
On the Financials tab, under Quote, invoicing and labour, enter: Currency, Quoted, Invoiced, Received, Exchange rate to USD (not needed for USD), Rate as of, Estimated hours, Hourly rate, and the AI usage from and to dates. Leave the dates blank to count AI cost from the day the project was created until today.
Add expenses with a category, amount, kind (Measured, a real receipt, or Estimated), date and note. Every change is recorded with its before and after values. Removing an expense is recorded, not deleted. The currency can't change while expenses are recorded in it.
How project margin is computed
- Revenue is the most reliable figure you recorded: received, else invoiced, else quoted. It is converted to USD with your exchange rate.
- Cost is the AI cost tagged to the project, plus the estimate from linked repositories, plus expenses, plus estimated labour (hours × hourly rate).
- Unattributed AI cost is usage in the date window that no project's rule claims. It is not in the figure. It is shown beside it and turns the figure into a range: at best none of it belongs to this project, at worst all of it does.
| Label | Meaning |
|---|---|
| Strong | Everything is measured: no repository estimate, no estimated expenses or labour, revenue is not just a quote on an unfinished project, the currency is USD, and nothing is unattributed. |
| Estimated | A figure, with the reasons it is not Strong listed underneath. |
| Incomplete | No figure. The panel lists what is missing: revenue, a rule (tag, customer reference or linked repository), or an exchange rate. |
The client portal
The client portal is a separate website at https://portal.timewastevc.com. Your client's contacts see there what you have published. They don't need a Token Meter account or a password, and they don't take up seats. The invitation email links straight to their project; later they sign in at https://portal.timewastevc.com/login.
Invite a client contact
An invitation is sent when a contact is given access to a project. There are two ways, depending on whether the person is already a contact.
Someone new (Owners and Admins):
- Open Clients (Coding tools view) and click the client.
- Under Contacts, enter Name and Email, choose the project in Give access to a project, and pick the Role on that project.
- Click Add contact. This adds the contact and sends the invitation in one step.
An existing contact (Owners, Admins and project leads):
- Open the project and go to the Client tab.
- Click Grant access. The button appears only once the client has at least one contact.
- Choose the Contact and the Role: Guest can view; Approver can also answer requests.
- Click Grant access. You see Access saved and invitation sent. (or that it is queued and will go out within a minute).
The invitation carries a single-use sign-in link that is valid for 72 hours. The contact's status moves from Queued to Sent, then to Opened once they view the project. Each workspace can send up to 20 invitations in any 24 hours, resends included.
Change a contact's role
- Open the project and go to the Client tab.
- Click Grant access, choose the same contact, and pick the new Role.
- Click Grant access. You see Access saved. The role pill under Client access changes. Nothing is emailed.
Resend an invitation
On the Client tab, under Client access, click Resend invite next to the contact. It sends a fresh 72-hour link and cancels the earlier one. It counts toward the 20-a-day limit.
Revoke access
- Open the project and go to the Client tab.
- Under Client access, click Revoke next to the contact, then confirm.
- You see Access revoked. The contact loses this project on their next click.
To end a contact's access to every project at once, Archive them on the client's page instead.
Signing in
The invitation link opens a page with a Continue button. The link is used only when the contact clicks it, so email scanners that open links don't use it up. Later, contacts sign in at https://portal.timewastevc.com/login by entering their email and choosing Email me a link. That link works once and expires in 15 minutes. A session lasts up to 30 days, and ends after 7 days without a visit.
What the client sees
A contact with access to one project goes straight to it; with several, they get a list. For each project they see:
- the title, description, health and target date;
- milestones you chose to Show to client, with progress and what is next;
- published updates, newest first;
- published deliverable links;
- requests, which an Approver answers with Approve, Request changes or Decline (a note is required for the last two);
- comments on requests and a general discussion. Contacts can post up to 20 comments an hour and remove their own comment within 15 minutes, as long as it is still the newest comment in that thread.
The portal page also refreshes itself every 20 seconds while it is open, when something on the project changes.
What the client never sees
Internal milestones, update drafts and unpublished updates, unpublished links, internal notes, the project team, financials, AI cost, other clients and other projects. Viewing a project and clicking a deliverable link are recorded, and the view time is what you see as Last viewed.When your subscription lapses
The portal becomes read-only for 14 days. Contacts can still read, but cannot answer requests or comment. They see “Updates are paused for now”. After the 14 days they can no longer sign in.
Who can do what
| Task | Who |
|---|---|
| Customers, revenue and customer margin | Owners and Admins |
| Add, archive and anonymise clients and contacts | Owners and Admins |
| Invite someone new (add a contact with a project) | Owners and Admins |
| Create and archive projects; set project members | Owners and Admins |
| Edit milestones, drafts, links and notes | Owners, Admins, and project contributors and leads |
| Publish, grant existing contacts access, change roles, revoke, send requests, reply to clients | Owners, Admins and project leads |
| Edit project details and AI cost rules | Owners, Admins and project leads |
| Link GitHub repositories to a project | Owners and Admins |
| See and edit project financials | People with the owner, CTO or CFO billing role who can also open the project (Owners, Admins, or anyone with a role on it) |
Limits
| Limit | Value |
|---|---|
| Active projects | 5 on Free. Unlimited on Growth, Scale and Enterprise. |
| Client contacts | 10 on Free. Unlimited on the others. |
| Client invitations | 20 per workspace in any 24 hours (rolling), resends included. |
| Invitation link | Valid for 72 hours, single use. |
| Portal sign-in link | Valid for 15 minutes, single use. |
| Portal session | Up to 30 days; ends after 7 days without a visit. |
| Portal after a lapsed subscription | Read-only for 14 days, then no sign-in. |
| Client comments | 20 per contact per hour; a contact can remove their own comment within 15 minutes, as long as it is still the newest comment in that thread. |
| Customer revenue and margin | Growth, Scale and Enterprise. |
| Customer history | 90 days on Free; all of it on paid plans. |
| Project tag | Up to 64 characters: lowercase letters, digits, . _ : - |
| Customer reference | Up to 200 characters, stored in lowercase. |
Active projects are those not Completed or Archived; moving one back to an active status counts against the cap. Contacts count unless they are archived or anonymised, so invited and bounced contacts count too.
Troubleshooting
| What you see | What to do |
|---|---|
| No customer traffic yet. | No usage with a customer reference has arrived this month. Add the tag to your calls (see Tag usage). |
| A project tag never shows up on the project | The tag probably breaks the format (spaces, or a character other than . _ : -) and was dropped. Use lowercase letters, digits and dashes, e.g. acme-website, and check the project has a rule for it. |
| A row reads “Merged before <date>” | Email-shaped customer references sent before keyed pseudonyms were stored as one [REDACTED:email] row; the values were never kept, so it can't be split. Usage since then is listed per customer. |
| A customer shows “Add revenue” instead of a margin | Enter revenue for that customer and month, or import it. |
| Imported revenue doesn't attach to a customer | Write the customer reference as it appears in the Customer column. Case does not matter, but spelling, spaces and punctuation do. |
| Margin shows a range | Your providers' bills for the month and the cost Token Meter metered differ by more than 2%. Some spend is not reaching Token Meter, or the bill is not complete yet. |
| Margin says “not yet reconciled” | No billing reconciliation has run for the month. Reconciliation needs your providers' billing data (see AI Bill). |
| You have reached the active project limit for your plan. | Complete or archive a project, or change plan. |
| You have reached the client contact limit for your plan. | Archive or anonymise a contact, or change plan. |
| That email already belongs to a contact. | Each address is one contact in the workspace. Use the existing contact. |
| That email belongs to an archived contact of another client. | The address was archived under a different client and can't be moved. |
| Verify your email address before inviting clients. | Verify your own account email: use the link in your verification email, or request a new one at https://timewastevc.com/signin/verify-email. Then grant access again. |
| You have reached this workspace's limit for client invitations in a rolling 24 hours. | Your workspace sent 20 invitations in the last 24 hours. Wait until the oldest is more than 24 hours old, then try again. |
| Contact added, but the invitation was not sent: … | The contact is saved, but they were not given access. Fix the reason shown (verify your account email, or wait for the invitation limit). Then open the project's Client tab, click Grant access, and choose that contact. |
| Link expired | The contact didn't open the invitation within 72 hours. Click Resend invite on the project's Client tab. |
| Email bounced, or Not sent | The address doesn't accept mail, or bounced before. Add the contact again with a corrected address. |
| That contact already has this access. | The contact already has that role on this project. Pick the other role to change it. |
| Publish it to the client first | A request can only be about something the client can see. Publish the update or link, or show the milestone. |
| Give a client contact the approver role on this project first | An approval needs at least one Approver. |
| Another project in this workspace already uses that tag (or customer reference). | Each tag and customer reference belongs to one project. Remove the rule from the other project first. |
| Project tags use lowercase letters, numbers, and . _ : - (up to 64 characters). | Retype the rule value in that format, the same way your code sends it. |
| Project margin is Incomplete | Follow the list under the figure: record revenue, add a rule or link a repository, or enter an exchange rate. |
| The client sees “This sign-in link was already used or has expired.” | Sign-in links work once and expire after 15 minutes. They can request a new one on the same page. |
Security
- The portal is a separate application with its own database access. It can read only the projects a contact currently has access to, only published content, and no financial data. It cannot write anything except through narrow functions that check the contact's role.
- Every portal request checks the session against the database. So revoking access, archiving a contact, client or project, or a lapsed subscription takes effect on the contact's next request. Revoking a contact's last project, archiving a contact or archiving a client also ends their sessions and unused links straight away.
- Invitation and sign-in links are single-use and stored only as hashes. Asking for a sign-in link gives the same answer, after the same delay, whether or not the address has access. So the page can't be used to find out who your clients are. Sign-in requests are rate-limited per address and per network address.
- Deliverable links must be https. Clicks go through the portal, which checks the link is published and shared with that contact before redirecting.
- Session cookies are HTTP-only, and the portal sends a strict Content Security Policy.
- Client work changes (clients, contacts, access, publishing, project rules and financial edits) are recorded as audit events with who made them.