Skip to main content

Read the current balance

balance is the available execution-credit balance. When a manager funds the organization, this is the manager’s balance. own_balance, lifetime_purchased and lifetime_consumed refer to the selected organization’s own credit account. The response also includes funded_by_manager, funding_organization_id, funding_organization_name and funding_organization_slug. The organization comes from your current login or --org; your credential must have access to it. A manager key can read a managed organization’s balance by selecting that organization. The REST equivalent is GET /v1/credits/balance, with the organization slug or UUID in X-Organization-ID. The MCP tool is erdo_credit_balance; it uses the session’s current organization and is in the account toolset, so a connection with the curated list on does not list it. Add X-Erdo-MCP-Toolsets: account, or ?toolsets=account on the MCP URL. See Toolsets. A funded child can read its manager’s available balance and identity, but cannot read the manager’s invoices or other children’s usage history.

Grant credits as staff

Only an active human Erdo staff member or superuser can grant credits. Sign in with erdo login as that staff user, or use their unrestricted personal API key. An organization owner, administrator, or manager service principal cannot grant credits. External scoped tokens and scoped or read-only API keys cannot grant them. MCP does not accept scoped or read-only API keys, including for balance reads. The positional target accepts an organization slug or UUID. It is separate from --org, which selects the caller’s authenticated organization. You can remain in your staff organization while granting to a target organization. --amount must be a positive integer, at most 2147483647; --reason must contain text and is stored in the audit ledger. Grants add non-expiring credits without charging a payment method. They do not change subscriptions, auto top-up, billing ownership, or manager funding. The response identifies the target and the balance committed with the grant:
Usage after the grant can change the balance. If you have access to the target, read it again with erdo --org harbor-view credits balance.

REST and MCP

POST /v1/admin/credits/grant accepts:
The MCP tool erdo_admin_grant_credits takes organization_slug, amount, and reason; its target must be a slug. It is in the staff toolset. tools/list includes it only when the caller is Erdo staff and the connection requests staff or all. REST and MCP call the canonical staff grant service. The web admin’s separate Top-up action adds credits that expire after 12 months.
Every invocation is a new grant. The CLI does not retry grant requests. If a connection drops, a response cannot be read, or a server error leaves the outcome unknown, do not repeat the command. Inspect the target organization’s credit ledger under Admin → Billing → Credits for the target, amount, reason, and time first. A balance alone cannot prove whether a particular grant occurred because other credits and usage may change it. REST and MCP clients must also disable automatic replay of this mutation.

Manager execution-credit funding

A manager can fund managed organizations’ Erdo execution credits. This is separate from Google Ads/media budgets and commercial subscription billing. The setting is enabled by default for managed organizations. It applies one manager hop with no fallback to a child’s credits when the manager is depleted; existing child credits remain untouched. Disabling manager funding makes later work use each child’s own balance. If historical data contains several active managers, the oldest relationship selects the manager; disabling that manager does not spend a different manager’s credits.
The REST equivalents are GET and PATCH /v1/credits/manager-funding, with {"enabled":true} or {"enabled":false}. MCP provides erdo_get_manager_credit_funding and erdo_set_manager_credit_funding, both in the account toolset, so a connection with the curated list on does not list them. See Toolsets. Reading requires organization membership. Changing the setting requires an administrator or owner of the selected manager organization. A child cannot change its manager’s setting by selecting itself. The write requires an explicit user instruction and never purchases credits or changes a media budget. Refunds use the durable original payer even after a setting or relationship changes. Failed refunds are kept as pending requests and retried automatically. Managers see child-named audit/usage; a child sees only its own attributed usage, never sibling history.