Access tokens & the MyWay CLI

Create a personal access token, install the myway command, and connect Claude Code, Claude Desktop, other AI assistants, CI jobs and scripts.

The way to reach MyWay from outside the browser is a personal access token: the command-line tool (MyWay CLI), scripts, CI jobs and AI assistants call the API with it. A token acts with its owner’s permissions; it does what your board roles allow and nothing more. Workflow rules, status locks, fill-in rules, rate limits and the audit log apply exactly as they do to a request from the browser (v1.82.0). Write requests are limited per user per minute (by default 60 general writes, 60 comments, 10 GitLab calls and 10 imports; a super administrator changes them under Settings > System limits). The CLI does not retry a rate-limited request, so allow for it in bulk scripts. Requests made with a token (CLI, scripts, AI assistants) do not make you show as online: online status is computed only from real interaction in the browser, and token use shows up as "last used" in the token list (v1.101.0).

Creating a token

Tokens are managed in Settings > Access tokens (My account group), on the Personal access tokens card. Every user has the tab; no admin rights are needed. In the row at the top of the card, type a token name (for example laptop, Claude Code), pick the scope (Read and write by default) and the expiration (90 days by default), then press "Create token".

SettingOptionsWhen
ScopeRead and write · Read onlyRead only for a job that only reads (a report script, an assistant that summarizes a board). A write with a read-only token is refused as read-only; queries that change nothing, such as task queries, saved filter results and dashboard queries, work (v1.82.1).
Expiration30 days · 90 days · 365 days · No expirationAn expired token shows as "expired" in the list and is no longer accepted. Even for a long-running job such as CI, a token with an expiry and a renewal in the calendar is safer.
  • A token is shown only once, when it is created, in the "Your token is ready" box. Take it with "Copy" and store it; if you lose it, revoke it and create a new one. The server keeps only a hash of the token, never the token itself
  • The list shows each token’s name, scope, creation and expiry dates and when it was last used ("never used" or "last used …"). Last use is updated at most every five minutes
  • "Revoke" invalidates a token at once: every tool using it loses access that moment. A read-and-write token you find has leaked can also be revoked with that same token; a read-only token is revoked from the browser only
  • A new token can only be created from a signed-in browser session; a token cannot create another token. That way a leaked token cannot open a fresh token without an expiry for itself and escape revocation
  • A user can hold up to 20 tokens. Open a separate token for each tool you use: if one leaks, you revoke only that one
  • Changing your password does not drop your tokens, because a token is a separate credential, not derived from the password. If your account is deactivated, however, all of its tokens stop working at once
  • Creating and revoking are written to the workspace audit log, which workspace admins see, as "Access token created" and "Access token revoked". Work done with a token appears in the audit log and the task history under the token owner’s name
app.themyway.app/settings/access-tokens
Settings > Access tokens: the token list and the CLI setupSettings > Access tokens: the token list and the CLI setup
Settings > Access tokens: the token list and the CLI setup

Tokens are signed with the installation’s SESSION_SECRET. If that value changes, for example when a backup is restored with a different .env.onprem, every access token becomes invalid along with the sessions and has to be created again.

Installing the CLI

The CLI is a single file (myway.js), and every installation serves the CLI of its own version from its own address; it does not depend on an outside registry such as npm, so it installs on an offline network too. It needs Node.js 18 or later. The MyWay CLI card on the same tab shows the install commands with your server’s address filled in once you pick macOS / Linux or Windows; the commands below are the same.

# macOS / Linux
mkdir -p ~/.local/bin && curl -fsSL https://myway.company.com/cli/myway.js -o ~/.local/bin/myway && chmod +x ~/.local/bin/myway
myway login --url https://myway.company.com     # asks for the token, it is not shown on screen
# Windows (PowerShell)
New-Item -ItemType Directory -Force "$HOME\myway" | Out-Null
Invoke-WebRequest https://myway.company.com/cli/myway.js -OutFile "$HOME\myway\myway.js"
Set-Content "$HOME\myway\myway.cmd" '@node "%~dp0myway.js" %*'
# once: add it to PATH, then close and reopen PowerShell
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";$HOME\myway", "User")
myway login --url https://myway.company.com
  • myway login asks for the token without echoing it and writes it to ~/.config/myway/config.json; on macOS and Linux only you can read that file. myway logout forgets the stored token; revoke it as well to invalidate it on the server
  • If you work with several installations, each gets its own profile: pick one with --profile, change the default with myway use <profile>, list them with myway profiles
  • myway whoami prints the signed-in user, the server and the versions, and says when the CLI version differs from the server’s. myway self-update replaces the CLI with the version the server serves. Running it once after you upgrade the installation is enough. In CLIs older than v1.92.0, myway version create printed the tool’s own version number instead of creating a version, and in CLIs older than v1.105.0 every command failed while exiting on Windows and --json output piped into another command was cut off. self-update fixes these too
  • On an installation with its own certificate (an IP address or an internal CA), Node.js has to trust that certificate: point NODE_EXTRA_CA_CERTS at the root certificate

Commands

Command names and output are in English. Names are turned into IDs for you: a board by its key prefix (MYW), statuses, issue types, labels, sprints and versions by name (Turkish letters and letter case are ignored), a person by @handle or me. Every command gives machine-readable output with --json; myway help <command> shows the details and myway help --json prints every command and flag.

GroupCommands
Setuplogin, logout, whoami, profiles, use, claude-setup, agent-guide, mcp-setup (adds MyWay to Claude Desktop), mcp (the MCP server Claude Desktop runs), self-update
Taskstasks (open work by default), mine (assigned to me across boards, up to 500; --all includes done work), task (with subtasks, links and comments), create (a subtask with --parent), update, move (workflow rules apply), assign, comment, comments, comment edit, comment delete, delete, subtasks, history, link, unlink, links, watch, unwatch, bulk (up to 100 tasks of one board at a time by default, Settings > System limits)
Gitcurrent (shows the task named in your current git branch), start (assigns the task to you, moves it to in progress and creates the git branch)
Filesattach (--inline adds the file to the description, --comment to a comment with text; - reads base64 content from stdin and needs --name), attachments (files and web links), download (files only; for a web link it fails and prints the address)
Boardsboards, board (statuses, issue types, labels, sprints, versions, fields and your permissions)
Sprintssprints, sprint (with capacity), sprint create, sprint start, sprint complete (unfinished work goes to the backlog, the next sprint or a named one)
Versionsversions, version create, version update (e.g. marking it released)
Search and notificationssearch (across every board you can see), inbox, notifications, notifications read
Documentspages (the page tree of a docs board), page (as Markdown or HTML), page create and page update (from Markdown), page publish (cannot be undone, needs --yes; --summary stores the change summary with the publication, v1.106.0), page comments, page comment
Reviews and approvalsreviews, review, review start (starts a review of a document or a task, e.g. MYW-12, with participants, a due date and goals; tasks since v1.106.0), review comment (feedback while feedback is being collected), review decide, approvals, approval request (for a task, a document or a baseline), approval decide
Advancedapi: calls any API endpoint with your token; anything the web app can do can be done from here
myway mine                                  # open work assigned to me, all boards
myway tasks --board MYW --status inprogress --label bug
myway task MYW-12                           # details, subtasks, links, comments
myway create --board MYW --title "Login fails on Safari" --type Bug --assignee me --description @notes.md
myway update MYW-12 --due 2026-11-01 --priority high --add-label bug
myway move MYW-12 "In Review"
myway comment MYW-12 "Fixed on staging"
myway start MYW-12                          # assign to me, in progress, git branch MYW-12-<title>
myway pages --board WIKI && myway page pg-abc123

myway start adds you to the task’s assignees (existing ones stay), moves it to the board’s first "in progress" status and creates a branch named like MYW-12-the-task-title in the git repository you are in, or switches to it if it exists; --no-branch skips the branch and --status sets another target status. Because the branch name carries the task key, commits and MRs link to the task by themselves when the GitLab integration is connected, and myway current opens that branch’s task.

Exit codes can be used in scripts: 0 success, 1 error, 2 usage error, 3 authentication (not signed in or the token is invalid), 4 not found, 5 permission denied.

AI assistants

Any assistant that can run terminal commands can work in MyWay on your behalf: "summarize what is assigned to me", "file this bug on the MYW board and assign it to me", "the PR is open, move the task to review and comment". The assistant does not open a browser; it uses the CLI and acts with your permissions. Claude Desktop, which cannot run commands, uses the same CLI as tools (below).

AssistantCommandWhat it does
Claude Codemyway claude-setupWrites the instructions that introduce MyWay to Claude Code as a skill file (~/.claude/skills/myway/SKILL.md; with --project, into the current repository only). In later sessions, whenever MyWay or a task key like MYW-12 comes up, Claude uses these commands on its own.
Claude Desktop (chat)myway mcp-setupAdds MyWay to Claude Desktop as tools, so you can ask from the chat "what is on my plate this sprint" or "comment on MYW-12". Documents are covered too: create a page under a folder with Markdown content, update it, start a review and publish. Attaching a file or screenshot to a task and starting a task review are tools too. Read tools run without asking, write tools ask for confirmation; publishing cannot be undone, so it asks every time. Deleting and approval decisions are not available as tools. Quit and reopen Claude Desktop after running the command. The token is not written to the config file; it is read from the CLI sign-in.
Codex, Cursor, Gemini CLI, GitHub Copilotmyway agent-guide --append AGENTS.mdAdds a MyWay section to the project’s AGENTS.md; assistants that read that file use the same commands. Without --append it only prints the section.

The instructions tell Claude Code and the other assistants to ask you before hard-to-undo actions such as deleting, approving or completing a sprint. Still, the assistant can do anything the token allows: if it only reads and summarizes, give it a read-only token. Revoke the token in Settings > Access tokens whenever you change your mind; access stops immediately.

Claude Desktop (MCP)

Claude Desktop’s chat cannot run commands on your computer; it reaches MyWay through an MCP server that ships inside the CLI (myway mcp). There is no separate package, and the server updates together with the CLI through myway self-update. Every tool runs the CLI itself, so name resolution, permissions, workflow rules and server errors are exactly the same as on the command line (v1.95.0).

  1. 1Create a token under Settings > Access tokens (name it "Claude Desktop", say) and take it with "Copy".
  2. 2On the MyWay CLI card on the same tab, pick your operating system, run the "1. Download and install" command, then sign in with the myway login --url command under "Connect to this installation"; it asks for the token without showing it.
  3. 3From the Claude Desktop (chat) card in the "AI assistants and automation" section, copy myway mcp-setup and run it in the terminal. It adds the "myway" server to Claude Desktop’s config file and prints the file’s path.
  4. 4Quit Claude Desktop completely and reopen it (closing the window is not enough). Then ask "what is assigned to me in MyWay?"
KindTools
Read (no confirmation)Who am I, List boards, Board details, List tasks, My tasks, Show task, Search, Sprint details, Inbox, Notifications, Document tree, Show document, Reviews, Approvals
Write (Claude Desktop asks first)Create task, Update task, Move task, Assign task, Comment on task, Attach file to task, Link items, Comment on document, Add review finding, Create document, Update document, Start review
Irreversible (asks every time)Publish document

Document tools (v1.103.0): Create document opens a page on a docs board, under a folder or parent page if given, with Markdown content and returns its link; Update document changes the title or replaces the whole content, and is refused while a review runs or an approved page waits for publication. Start review opens a review of a document or, since v1.106.0, a task; it takes participants (@person, @person:optional; at least one required), a due date and goals. A document locks while the review runs, a task does not. Publish document cannot be undone; a changeSummary is stored with the publication and is required when the document space requires one. The server refuses publishing while a review or approval is open and until the board’s publishing rule is met. Attach file to task uploads a local file or base64 content to a task, optionally into the description or a comment (v1.104.0). Deliberately left out of the tool list: deleting tasks and comments, completing a sprint, review and approval decisions (a signature in your name), and raw api calls. Use the CLI in a terminal for those. If Claude Desktop should only read, sign in with a read-only token: the write tools still appear, but the server refuses every write.

  • The config file is ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows and, on Linux (no official app, community builds), ~/.config/Claude/claude_desktop_config.json. Use --config for another file
  • Only the myway entry under mcpServers is written; other servers and settings are left alone. If the file exists, a time-stamped .bak backup is made next to it first; if it is not valid JSON, nothing is written
  • The token is not written to the config file: the server reads its identity from the myway login profile. By default it uses whichever profile is current; for a specific installation, run myway mcp-setup --profile <name>. If you have not signed in yet, mcp-setup reminds you, and the tools answer "Not signed in to MyWay"
  • myway mcp-setup --print prints the entry without touching the file, to add it by hand or use it in another client
  • The entry holds the full path of node and the location of myway.js, because Claude Desktop starts with a restricted PATH and may not find node on its own. If node moves (for example after switching Node versions with nvm) or you move myway.js, run myway mcp-setup again. myway self-update keeps the file where it is, so no new setup is needed
  • If something goes wrong: on macOS the server’s diagnostic lines land in ~/Library/Logs/Claude/mcp-server-myway.log (it starts with "[myway mcp] ready, 27 tools"). A tool that does not answer within 2 minutes is cut off
  • Work done from Claude Desktop shows under your name in the task history and the audit log, and does not make you show as online

CI and scripts

A pipeline needs no config file: the address and token are passed as the MYWAY_URL and MYWAY_TOKEN environment variables, and MYWAY_BOARD picks the default board. Keep the token in your CI secrets; use a read-only token for a job that only reads. A script can also skip the CLI and use HTTP directly: the request carries the token in an Authorization: Bearer header.

# GitLab CI: comment on the task named in the branch once the deploy succeeds
export MYWAY_URL=https://myway.company.com
export MYWAY_TOKEN=$MYWAY_CI_TOKEN          # a masked CI variable
TASK=$(echo "$CI_COMMIT_REF_NAME" | grep -oE "[A-Z][A-Z0-9]*-[0-9]+" | head -1)
if [ -n "$TASK" ]; then myway comment "$TASK" "Deployed to staging: $CI_PIPELINE_URL"; fi

# nightly report with a read-only token
myway tasks --board MYW --status inprogress --json > in-progress.json

Related pages: Working with Claude Code and Claude Desktop, GitLab integration, Roles & permissions.