/accounted:setupfrom Accounted
Walks through full Accounted onboarding: authenticate, create company from org number, connect bank and Skatteverket, then hand off to bookkeeping flows.
Ships in Accounted. Installing the plugin adds it to Claude Code.
The user just installed the Accounted plugin, or asked to get set up. Take them from "not connected" to "books are running" without sending them to the website first. Everything below happens in this conversation except the steps that legally need a human with BankID in a browser: creating the account, approving a bank consent, authorising Skatteverket.
Call accounted_get_agent_briefing.
/accounted:start for orientation./mcp, pick accounted, and authenticate. The browser opens Accounted's sign-in. No account yet? Create it right there ("Skapa konto"): BankID is fastest (about a minute, no e-mail confirmation); e-mail + password also works and asks for a 2FA app before consent. On the consent screen, every permission except Agentförslag: godkänn is pre-ticked; leave Företag: skriv ticked so the company can be created from here. Then continue with Step 2.NO_COMPANY_YET, the account exists but has no company yet: continue with Step 2.Call accounted_load_skill("onboarding") and follow it. In short: ask for the organisationsnummer first and call accounted_lookup_company; the public registry answers most of the form (name, address, F-skatt, VAT status, legal form, fiscal year), so present those as facts to confirm and ask only what still_to_ask lists (typically only the moms period; the accounting method defaults by company form and is confirmed in the preview). Then call accounted_create_company without confirm to get a preview, read the preview back in plain Swedish, and only after an explicit "ja" call it again with confirm: true.
Rules the tool enforces, so do not argue with them: a VAT-registered company needs both an organisationsnummer and a moms period; F-skatt must be stated, never assumed; an enskild firma always runs on the calendar year.
Call accounted_connect_bank and accounted_connect_skatteverket. Each returns a status and a link. The user opens the link in a browser where they are logged in to Accounted, approves with BankID, and comes back. Neither is mandatory to start: bank statements can also be imported as files, and declarations can always be downloaded and filed manually.
Call accounted_get_agent_briefing again to confirm the company is live, then point at the flows: /accounted:bookkeep once transactions arrive, /accounted:check for a health check, /accounted:start any time for orientation.
.accounted.json with { "company_id": "<uuid>", "name": "<name>" }, pass that company_id on every company-scoped call and say the company name once at the start. Otherwise, if accounted_list_companies is among your tools, the account reaches several companies: call it and ask once which company the task concerns (or whether it spans all of them) before any write, never write to a company the user did not name, and read back the company: { company_id, name, is_default } block that opens every result whenever it is not the company they named. If accounted_list_companies is not among your tools, the account has one company: results carry no company block and none of this applies.What the command file sets; muted values are Claude Code's defaults
accounting, onboarding, company-setup, bank-connection, tax-authority
7-day visitors to each command page
npx claudepluginhub erp-mafia/accounted --plugin accounted2 commands in this plugin
Other plugins' commands for the same job