Graphrt

Anthropic Claude

Messages (non-streaming), token counting, models, files and Message Batches with parsed JSONL results (deletes and cancels are node only)

Beta v0.1.0 Node.js 15 actions
Use in Graphrt Desktop

About

A Graphrt plugin for the Claude API. It is meant for workflows that need a second model next to the agent's own: ask Claude to summarize, classify, extract or review, count tokens before a big request, and run large jobs at half price through Message Batches. Requests are non-streaming. Every operation is a workflow node, cancels and deletes are node only.

What it can do

  • create_message: Messages API with messages, system, tools, tool_choice, thinking, output_config (effort, structured format), stop_sequences. Defaults: model: claude-opus-5-5, max_tokens: 16000
  • count_tokens: input token count for the same request shape (free)
  • Models: list_models (with max_input_tokens, max_tokens, capabilities), get_model
  • Message Batches: create_message_batch (up to 100,000 requests), get_message_batch, list_message_batches, get_message_batch_results (streamed JSON Lines up to 100 MB, filter by result_type or custom_ids, page with offset), cancel_message_batch, delete_message_batch
  • Files API: upload_file, list_files, get_file, delete_file
  • api_request: any other endpoint on https://api.anthropic.com (GET only for agents)

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • Create message anthropic.create_message
  • Count tokens anthropic.count_tokens
  • List models anthropic.list_models
  • Get model anthropic.get_model
  • Create message batch anthropic.create_message_batch
  • Get message batch anthropic.get_message_batch
  • List message batches anthropic.list_message_batches
  • Cancel message batch anthropic.cancel_message_batch
  • Delete message batch anthropic.delete_message_batch
  • Upload file anthropic.upload_file
Show all 15 actions
  • List files anthropic.list_files
  • Get file anthropic.get_file
  • Delete file anthropic.delete_file
  • Claude API request anthropic.api_request
  • Get message batch results anthropic.get_message_batch_results

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • ANTHROPIC_API_KEY Required
    API key (sk-ant-...), sent as x-api-key
  • ANTHROPIC_TOOL_ALLOW_BATCH Optional
    1 lets agent tools call create_message_batch (off by default: one call can queue 100,000 paid requests)
  • ANTHROPIC_UPLOAD_DIR Optional
    Directory upload_file may read local files from (absolute path). Without it, file must be an https URL

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Anthropic Claude.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install anthropic
workflow.yaml
- id: review
  type: anthropic.create_message
  system: You review support replies. Answer APPROVE or REJECT with one reason.
  messages: [{ role: user, content: "{{#start.draft#}}" }]
  max_tokens: 1000
  output_config: { effort: low }
- id: answer
  type: answer
  answer: "{{#review.data.content#}}"
Plugins in the docs