Download the PHP package mr3od/claude-auth without Composer

On this page you can find all versions of the php package mr3od/claude-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package claude-auth

claude-auth

Latest Version Downloads

claude-auth stores and switches between multiple Claude Code account credentials. It keeps your settings, history, and memory centralized across every account — no forking, no separate profiles.

Platform support

Linux only, for now. Claude Code stores credentials differently per platform — see Anthropic's own docs:

switch and login refuse to run on an unsupported platform, with a clear error message.

Install

Prebuilt binary (recommended)

Download the binary for your platform from the latest release. It bundles its own PHP runtime, so you don't need PHP installed.

Composer

If you already have PHP 8.3+ and Composer, install it as a global package instead:

Make sure Composer's global bin directory is on your PATH (composer global config bin-dir --absolute).

Usage

Commands

Command Description
accounts [--json] List stored accounts and mark which one is active.
login [--alias=] Run Claude Code login in an isolated scratch config directory, then store the result as a new account.
switch [<query>] [--json] Switch the active account. <query> can be a row number, an alias, or an email substring. Use switch - to switch back to the previous account.
remove <selectors...> [--all] [--force] [--json] Remove one or more stored accounts. Prompts for confirmation unless you pass --force.
alias set <selector> <alias> Set a display alias for an account.
alias clear <selector> Clear a display alias for an account.
import <path> [--alias=] Import an existing snapshot file, or a directory of them, as new accounts.
import --purge Rebuild the registry from whatever snapshot files already exist on disk.
export [<dir>] Copy every stored account's snapshot file to a directory. Defaults to ~/.claude-auth/backups.
clean Prune old backups and delete snapshot files no longer tracked by the registry.

Run claude-auth <command> --help for full option details.

How it works

Inspired by codex-auth, a similar tool for the OpenAI Codex CLI.

Contributing

Bug reports and pull requests are welcome. Before opening a PR, run the test suite:

See AGENTS.md for this project's coding conventions.

License

claude-auth is open-source software licensed under the MIT license.


All versions of claude-auth with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
laravel-zero/foundation Version ^13.23
laravel-zero/framework Version ^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mr3od/claude-auth contains the following files

Loading the files please wait ...