Package Information
Documentation
n8n-nodes-lineman
An n8n community node for Lineman — read
your AI-coding cost, savings, allowance and alerts in a workflow, and drive Lineman
admin settings, with zero Split-Out / Set / Code nodes.
Lineman is an AI-powered code assistant that saves cloud-LLM tokens on data-heavy
tasks. This node talks to the Lineman /v1 partner API, whose responses are
already flat, snake_case, dual-unit money (*_micro + *_usd, never cents),
ISO-8601 time, and top-level arrays — so a workflow author maps them straight to
items.
Credentials
Create a Lineman API credential:
- API Key — a durable key from Dashboard → Keys (a
fa_live_key). Do
not paste the token the Lineman CLI/plugin uses — it rotates every ~15 minutes
and would 401 mid-workflow. Minting a key needs MFA step-up; each user may hold
up to 10 active keys. - Base URL — defaults to
https://n8n.lineman.io/v1. Override for staging
(https://n8n.staging.lineman.io/v1) or a self-hosted control-api.
The credential test hits GET /v1/me.
Nodes
Lineman (action)
| Resource | Operations |
|---|---|
| Account | Get Identity |
| Spend | Get Summary, Get Breakdown, Get Top Spenders, Get Over Time, Get Recent Activity, Get Ledger |
| Savings | Get Allowance, Get Savings Summary, Get Savings By Task |
| Cost Centre | List, Get Allocation Report, Create, Update, Delete, Reorder |
| Member | List, Set Budget |
| Repo | List |
| Company | Get Summary |
| Alert | Get Company Alerts, Dismiss, Authorise Repo |
| Subscription | Get Mix |
Company-wide reads (spend, alerts, company, members, repos, subscription) want a
manager (administrator/auditor) key; spend reads silently degrade to your own
data (scope:"self") for a non-manager rather than erroring. Every write is
administrator-only and takes flat inputs (dollar amounts, comma-separated lists).
The Ledger supports Return-All offset pagination + a since_ts keyset cursor.
Lineman Trigger (polling)
On New Company Alert — polls GET /v1/alerts?status=active and fires once per
newly-active company alert (manager keys only). For the lowest latency, prefer the
real-time alert-webhook push instead: point Lineman's alert webhook at an n8n
Webhook node (Dashboard → Cost Controls).
Go-live checklist (for the Lineman operator)
This package is code-complete and reserved as a git submodule in the Lineman
monorepo. To publish it:
- Deploy
/v1to the live host. Apply the TFCn8n.lineman.iodomain mappingLINEMAN_N8N_HOST(LIN-3397) sohttps://n8n.lineman.io/v1/meanswers.
- Create the public GitHub repo
lineman-io/n8n-nodes-linemanand push this
working copy to it (the submodule'soriginis already set to it). - Verify + publish:
npm install && npm run build && npm run lint, then publish
via a GitHub Actions workflow with npm provenance (mandatory since
2026-05-01) to keep the verified-community-node track open. - Submit for n8n Cloud verification (zero runtime deps ✓, MIT ✓, public repo ✓).
The /v1 contract this node consumes is documented in the monorepo atdocs/runbooks/v1-partner-api.md.
License
MIT © Goo Holdings Ltd (trading as Lineman)