coregrc runs Core GRC tools from your terminal. It uses the same tools, permissions, and sign-in as the Claude connector, so anything Claude can do in your organization you can also script.

Install

You need Node.js 22 or later.

npm install -g coregrc
coregrc --version

To run it without installing:

npx coregrc --help

The CLI finds Core GRC's tools when it runs, so new tools, such as the incident, AI Governance and record history tools, work in any version once they're live. Version 1.2.2 adds examples for them to the README that ships with the package.

To update, run npm install -g coregrc again. To remove it, run coregrc logout and then npm uninstall -g coregrc.

Sign in

coregrc login
  1. Your browser opens on Core GRC. If it doesn't, copy the link the CLI prints.
  2. Sign in if you're asked to, then under Choose an organization to continue pick an organization. Only organizations you've already signed in to in that browser are shown.
  3. Check the details and choose Allow. The terminal prints Signed in.

The CLI waits five minutes for you to finish. It receives the sign-in on your own computer at http://127.0.0.1:8788/callback, or the next free port up to 8798.

Check who you're signed in as:

coregrc whoami

This shows your user, role, organization, active modules, and whether you can view or manage each one.

One organization per sign-in

Each sign-in is for one organization. To switch, run coregrc logout and then coregrc login. To keep several organizations signed in, give each its own credentials file:

COREGRC_CREDENTIALS=~/.config/coregrc/acme.json coregrc login
COREGRC_CREDENTIALS=~/.config/coregrc/acme.json coregrc whoami

Signing in on a remote machine

The sign-in comes back to 127.0.0.1 on the machine running coregrc. Over SSH, forward the port first, then open the printed link in your local browser:

ssh -L 8788:127.0.0.1:8788 you@server
coregrc login

If the CLI picks a port other than 8788 because it's taken, forward that port instead. The port appears in the redirect_uri part of the printed link.

How long you stay signed in

Access lasts up to 30 days at a time, and the CLI renews it when it can, for up to 90 days after you signed in. You need to sign in again if it can't be renewed, after 90 days, if you leave the organization, or if your organization requires two-factor sign-in and you haven't set it up.

Sign-in needs a browser, and the CLI has no unattended login. For CI and scheduled jobs, call the API with an API key instead. It runs the same tools with the same arguments.

Sign out

coregrc logout

This revokes the sign-in with Core GRC and deletes the stored credentials.

Commands

Command What it does
coregrc login Sign in through your browser
coregrc logout Revoke the sign-in and delete stored credentials
coregrc whoami Show your user, role, organization, and active modules
coregrc tools List every tool you can use, one per line: name, a tab, then its description
coregrc tools --module <prefix> List one module's tools, for example --module rights
coregrc describe <tool> Show a tool's title, description, and input schema as JSON
coregrc call <tool> [json] Call a tool by its full name
coregrc <module> <action> [json] Call a tool by module and action
coregrc --version Print the CLI version. coregrc version and -v also work
coregrc --help Show help. coregrc help and -h also work

Calling tools

The module is the tool's prefix, and the action is the rest of its name in kebab-case or as separate words. These all call tprm_list_entities:

coregrc tprm list-entities '{"entityType":"vendor"}'
coregrc tprm list entities '{"entityType":"vendor"}'
coregrc call tprm_list_entities '{"entityType":"vendor"}'

Modules: tprm (third-party risk management), policy (privacy policies and notices), consent (cookie consent), rights (privacy rights), and webaccess (website accessibility). You only see modules your organization has active, and only the tools your role allows. The platform tools, such as coregrc_find_tool and coregrc_read_resource, are always available with coregrc call, for example coregrc call coregrc_find_tool '{"query":"vendor"}'. The full list is on the Tools page, or run coregrc tools.

Short names that Core GRC recognises also work: coregrc tprm dashboard for tprm_get_dashboard, and coregrc tprm risk-analytics for tprm_get_risk_analytics.

Arguments are a single JSON object, always last. To see which arguments a tool takes:

coregrc describe tprm_list_entities

List tools page with page and pageSize, and take fields to return only the fields you need. See Common arguments. The record types in third-party risk management are singular: vendor, asset, service, element, processing-activity, ai-system.

Arguments from a file

For long arguments, such as an assessment template's questions, put the JSON in a file and pass @ and its path. @- reads from stdin.

coregrc tprm create-template @supplier-security.json
cat supplier-security.json | coregrc tprm create-template @-

supplier-security.json:

{
  "name": "Supplier security",
  "category": "Security",
  "questions": [
    {
      "question": "Do you encrypt customer data at rest?",
      "type": "yes-no",
      "riskMappings": [
        {
          "answerValue": "No",
          "riskTitle": "Customer data not encrypted at rest",
          "riskDescription": "The supplier stores customer data without encryption at rest.",
          "riskCategory": "Security",
          "likelihood": 3,
          "impact": 4
        }
      ],
      "issueMappings": [
        {
          "answerValue": "No",
          "issueTitle": "Ask the supplier to encrypt data at rest",
          "issueDescription": "Agree a date for encryption at rest.",
          "priority": "High"
        }
      ]
    },
    { "question": "Which certifications do you hold?", "type": "multiple-choice", "options": ["ISO 27001", "SOC 2", "None"] },
    { "question": "Describe your incident response process.", "type": "textarea" }
  ]
}

Question types: text, textarea, number, single-choice, multiple-choice, yes-no, scale, date, and statement. Use the returned id as templateId in start-assessment-job.

Risk and issue mappings

A mapping creates a risk or issue on the assessed record when an assessment gives a question a certain answer. In the example above, answering "No" to the encryption question creates the risk and the issue. For yes-no, single-choice, and multiple-choice questions, answerValue must be one of the question's answers; join several with | to trigger on any of them. Text answers also match when they contain answerValue as a whole word or phrase.

To change one mapping without resending every question, find the template's question ids with list-templates '{"includeQuestions":true}', then:

coregrc tprm add-template-mapping '{"templateId":"<id>","questionId":"q1","kind":"risk","answerValue":"No","title":"No MFA","description":"MFA is not enforced","likelihood":3,"impact":4}'
coregrc tprm update-template-mapping '{"templateId":"<id>","questionId":"q1","kind":"risk","mappingIndex":0,"impact":2}'
coregrc tprm delete-template-mapping '{"templateId":"<id>","questionId":"q1","kind":"risk","mappingIndex":0,"confirm":true}'

kind is risk or issue. mappingIndex counts from 0 in the question's riskMappings or issueMappings.

import-template copies a template onto one record with its mappings, like the Import button in the app. Mappings apply to assessments run after they're added. To apply them to an assessment that has already run, use reprocess-assessment. It only adds risks and issues the assessment hasn't created yet:

coregrc tprm import-template '{"templateId":"<id>","entityType":"vendor","entityId":"<id>"}'
coregrc tprm reprocess-assessment '{"id":"<assessment id>"}'

Bulk tools

Tools with bulk in the name work on a list of records in one command: create, update, or archive register records, risks, and issues, and more. The tools page lists them all.

coregrc tprm bulk-update-entities @vendor-owners.json
{
  "entityType": "vendor",
  "items": [
    { "id": "<id-1>", "fields": { "internalOwnerEmail": "priya@ourcompany.com" } },
    { "id": "<id-2>", "fields": { "internalOwnerEmail": "sam@ourcompany.com" } }
  ]
}

A bulk tool takes up to 50 records per call (10 for bulk-start-assessment-jobs, bulk-start-workflow-runs and bulk-set-legal-entity). From version 1.2.0, the CLI handles longer lists for you: pass the whole list and it sends it in batches, shows progress on stderr, and prints one merged result. Run npm install -g coregrc@latest if coregrc --version shows an older version.

coregrc tprm bulk-create-entities @all-vendors.json
# Sent 50 of 1650
# Sent 100 of 1650
# ...

One bad record doesn't stop the rest, and a result with failed records still exits 0. Check failedCount and failed, where index is the record's position in your list:

coregrc tprm bulk-update-entities @vendor-owners.json | jq '{updatedCount, failedCount, failed}'

Repeats are only caught within each batch of 50. If a whole batch is refused, for example because you don't have permission, the CLI stops, exits 1, and lists the records it never sent in notAttempted.

If a request fails before a reply arrives, for example because of a network error, the CLI also stops and exits 1. It keeps the results of earlier batches and lists that batch's records in unconfirmed. Those may already have been applied, so check them before you send them again.

To build the list from a CSV with id and owner email columns:

jq -R -s '{entityType:"vendor", items:[split("\n")[1:][] | select(length>0) | split(",") | {id:.[0], fields:{internalOwnerEmail:.[1]}}]}' owners.csv > vendor-owners.json

Archiving in bulk needs "confirm": true. There's no bulk delete.

Quoting JSON

Wrap the JSON in single quotes in bash, zsh, and PowerShell 7.3 or later. In Windows Command Prompt, use double quotes and escape the inner ones:

coregrc tprm list-entities "{\"entityType\":\"vendor\"}"

Changes that need confirm

Deleting, archiving, canceling a run or scan, restoring a previous version, publishing cookie consent settings, starting a cookie scan, and creating a website that uses a paid license all need "confirm": true:

coregrc tprm archive-entity '{"entityType":"vendor","id":"<id>","confirm":true}'

Without it, nothing changes and the CLI prints what would have happened. Archive where you can: it can be undone, and delete can't.

Output and scripting

Results print to stdout as formatted JSON.

  • A successful call prints the tool's result and exits 0.
  • A failed tool call prints {"success": false, "error": "..."} and exits 1.
  • Problems before the call, such as not being signed in or invalid JSON, print a message to stderr and exit 1.

This makes the CLI easy to use with tools like jq:

coregrc tprm list-entities '{"entityType":"vendor","pageSize":100}' | jq -r '.items[].name'

Run a command once without jq to see the shape of its result.

Changes made through the CLI are saved with source cli, so they can be told apart from changes made in the app or through Claude.

Examples

# Third-party risk management
coregrc tprm dashboard
coregrc tprm list-risks
coregrc tprm create-vendor '{"name":"Acme Hosting","website":"https://acme.example"}'
coregrc tprm list-templates
coregrc tprm create-template @supplier-security.json
coregrc tprm import-template '{"templateId":"<id>","entityType":"vendor","entityId":"<id>"}'
coregrc tprm start-assessment-job '{"templateId":"<id>","entityType":"vendor","entityId":"<id>"}'
coregrc tprm get-assessment-job-status '{"jobId":"<id>"}'

# Incidents: log one, see the regulator deadline rules, add the GDPR notification, record it as sent
coregrc tprm create-incident '{"fields":{"title":"Customer emails exposed at Acme Hosting","description":"Acme told us a misconfigured bucket exposed customer emails.","category":"Personal data breach","causedBy":"Third party","causedByVendorId":"<vendor id>","personalDataInvolved":true,"awareAt":"2026-11-26T08:30:00Z"}}'
coregrc tprm list-regulatory-presets | jq '.presets[] | {id, name, enabled, citation}'
coregrc tprm upsert-incident-notification '{"id":"<incident id>","notification":{"presetId":"gdpr-controller","stageKey":"notification"}}'
coregrc tprm upsert-incident-notification '{"id":"<incident id>","notification":{"id":"<notification id>","submittedAt":"2026-11-27T16:00:00Z","referenceNo":"2026-1187"}}'
coregrc tprm list-incidents '{"open":true,"severity":"High"}'
coregrc tprm archive-incident '{"id":"<incident id>","confirm":true}'

# AI Governance: NIST AI RMF gaps, and updating one outcome
coregrc tprm list-ai-framework-items '{"function":"GOVERN","gapOnly":true}'
coregrc tprm update-ai-framework-item '{"subcategoryId":"GOVERN 1.6","fields":{"current":"Partially achieved","target":"Fully achieved","owner":"Head of AI"}}'
coregrc tprm record-ai-go-decision '{"aiSystemId":"<id>","decision":"Go","notes":"Fairness review passed"}'

# Record history: who changed a record, and when
coregrc tprm get-record-history '{"recordType":"vendor","recordId":"<id>"}' | jq '.items[] | {at, actorName, source, changes}'

# Exports: the DORA register of information and the GDPR Art 30 record of processing
coregrc tprm export-dora-register > dora-register.json
coregrc tprm export-ropa > ropa.json

# Privacy policies and notices
coregrc policy list-policies
coregrc policy get-policy '{"id":"<id>"}'

# Cookie consent: preview, then publish exactly what you previewed
coregrc consent preview-publish '{"websiteId":"<id>"}'
coregrc consent publish-website '{"websiteId":"<id>","expectedDraftHash":"<draftHash from preview>","confirm":true}'
# Add "reconsent":true to ask visitors who already chose to choose again

# Privacy rights
coregrc rights list-requests
coregrc rights get-stats

# Website accessibility
coregrc webaccess start-scan '{"websiteId":"<id>"}'
coregrc webaccess list-scan-issues '{"jobId":"<id>","limit":10}'

Upload a document

Files go through a 15-minute signed upload link. You need manage permission for assets.

# 1. Get an upload link. Note signedUrl and objectPath in the result.
coregrc tprm create-document-upload-url '{"contentType":"application/pdf","originalName":"soc2.pdf"}'

# 2. Upload the file. Content-Type must match step 1.
curl -X PUT "<signedUrl>" -H "Content-Type: application/pdf" --data-binary @soc2.pdf

# 3. Attach it to a record.
coregrc tprm create-document '{"entityType":"vendor","entityId":"<id>","name":"SOC 2 report","type":"file","category":"Security","objectPath":"<objectPath>"}'

Documents also covers web links and attaching existing documents.

CLI-only tools

Core IQ full reviews are long-running research jobs that count against your plan's review quota, so they're available in the CLI and the app but not in Claude. They need the canManageCoreIq permission.

coregrc tprm start-full-review '{"entityType":"vendor","entityId":"<id>"}'
coregrc tprm get-full-review-status '{"jobId":"<jobId>"}'

Environment variables

Variable What it sets Default
COREGRC_CREDENTIALS Where credentials are stored ~/.config/coregrc/credentials.json
COREGRC_APP_ORIGIN The Core GRC app used for sign-in https://app.core-grc.com
COREGRC_MCP_URL The tools server. Overrides the address saved at sign-in https://cli.core-grc.com/mcpHttp
COREGRC_OAUTH_URL The sign-in server. Overrides the address saved at sign-in https://cli.core-grc.com/mcpOauthHttp

You only need the last three if Core GRC support asks you to use a different environment.

The credentials file holds your access and refresh tokens. The CLI creates it readable only by you (on Windows it's under %USERPROFILE%\.config\coregrc). Don't share it or commit it.

Troubleshooting

Message What to do
Not signed in. Run: coregrc login Run coregrc login, or check COREGRC_CREDENTIALS points to the right file
Refresh token is invalid or Session ended. Sign in again. Your sign-in has expired or you left the organization. Run coregrc login
Multi-factor authentication is required or Two-factor authentication is required Your organization requires two-factor sign-in. Set it up in the Core GRC app, then run coregrc login
Sign-in timed out Finish signing in within five minutes, then run coregrc login again
Could not bind a loopback callback port Ports 8788 to 8798 are all in use. Free one and try again
Unknown command: <module> Your organization doesn't have that module active, or your role can't use it. Check coregrc whoami
Unknown tool: <name> Check the spelling with coregrc tools --module <module>. Tools that change data need manage permission
Module … is not enabled for this organization The module was paused or its subscription ended
Set confirm to true to run … Add "confirm": true to the JSON if you meant to make that change
Invalid JSON arguments Pass one JSON object, quoted for your shell (see Quoting JSON)

Still stuck? Email support@core-grc.com with the command you ran, the output of coregrc --version, and the message you got. Don't include your credentials file.

Release notes for each version are on GitHub. To report a security vulnerability, see Security.