A cloud for small software: deploy team apps to Railway in one command, private by default, shared by work email
pip install small-software Copy PIP instructions
small deploys small team apps to Railway in one command and protects them with sign-in by work account (Google, Microsoft), work email or personal invite links.
small init my-service # skeleton: invite-link protected server, small.json, .gitignore cd my-service small deploy # → https://my-service-3f9a.up.railway.app small open # open with the invite link small access add ivan@company.com # who may sign in, like sharing a Google Doc small sso google # "Sign in with Google" (or small sso microsoft) small mail resend # or sign-in links by email small access log # who signed in, when and how small access add bob # or a personal link for bob (small access revoke bob to revoke it) small notify telegram # access requests to Telegram small env set DEBUG=1 # environment variable in Railway and small.json small db add postgres # database, DATABASE_URL in the app small volume add # persistent disk: files and sign-in state survive deploys small domain add app.example.com # custom domain small sleep on # sleep when idle (saves money) small logs -f # app logs small dashboard # all apps in the browser: status, cost, logs small destroy # remove from Railway together with databases You can also deploy an existing code folder (app.py, main.py, package.json and so on): small init is optional.
pip install small-software The command is small. With pipx: pipx install small-software.
pip install ./small-cli Windows (recommended): one command in PowerShell.
irm https://raw.githubusercontent.com/RuslanKazyradzi13/small-software/main/install.ps1 | iex It installs small into its own Python environment in %LOCALAPPDATA%\Programs\small and adds a small command that Smart App Control does not block (there is no unsigned small.exe). Needs Python 3.9+, no admin rights; run it again to upgrade. Uninstall:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/RuslanKazyradzi13/small-software/main/install.ps1))) -Uninstall Values with & or | (URLs, for example) need PowerShell's stop-parsing token: small --% env set "URL=https://x?a=1&b=2".
Windows with pip. pip install creates small.exe, which Smart App Control / Application Control may block because it is unsigned. If that happens, either:
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";$PWD\small-cli", "User") Language small speaks English and Russian. It uses Russian when the system language is Russian (LC_ALL, LC_MESSAGES, LANG, LANGUAGE, or the Windows display language) and English otherwise. To choose explicitly, set SMALL_LANG to en or ru:
export SMALL_LANG=en $env:SMALL_LANG = "en" Deployed apps pick their language separately:
You need an account token or a workspace token (Railway → Account Settings → Tokens). A project token will not work: it cannot create projects.
Save the token to the RAILWAY_API_TOKEN variable, replacing YOUR_TOKEN entirely. Only the token itself, in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, should remain inside the quotes:
export RAILWAY_API_TOKEN="YOUR_TOKEN" # add this line to ~/.bashrc or ~/.zshrc to keep it A variable saved "permanently" is visible to new terminal windows. Terminals and apps that are already open do not see it; restart them. small strips spaces, quotes and angle brackets around the token by itself.
small init [folder] [--template python-http|node-http|fastapi|streamlit] [--name NAME] [--force] Creates a ready-to-deploy micro-app in the folder (the current one by default; created if it does not exist). --template (short: -t) picks the template, python-http by default:
The sample apps are in English: both the page text and the code comments.
Existing files are not overwritten. If the folder already has files the template creates:
--force overwrites without asking, including small.json: you get a new name and a new ACCESS_TOKEN, and old invite links stop working after the next deploy. .gitignore and .railwayignore are never overwritten: only missing lines are appended, so running init again does not duplicate anything.
small dashboard [folder] [--port N] [--no-browser] Starts a local server and opens a browser with all micro-apps in a folder: the current one by default, or any other, for example small dashboard ... An app is a folder with small.json and/or .small.json.
The Refresh button rescans the folders without a restart. Stop the server with Ctrl+C.
Open via invite link opens the app right away with the owner's token, skipping the "invite only" screen. The token only goes to the browser's address bar on navigation; it is not in the dashboard page data.
Logs opens a window with the last 200 lines of the app or build log (tabs App / Build). Requires RAILWAY_API_TOKEN; without it the button is disabled.
Share opens who has access: work emails, whole domains and personal-link names (never the links themselves). Type ivan@company.com, @company.com or a name and click Add, or click Revoke next to anyone. It does exactly what small access add / revoke does: updates small.json and Railway and restarts the app. A new personal link is shown only once, with a Copy button, and works like a password. Requires RAILWAY_API_TOKEN. The page and its requests are protected: a per-run key, Host/Origin checks, no framing, JSON only.
Port 3000 by default; if it is busy, any free port is used. The URL is printed to stdout.
The server listens on 127.0.0.1 only and answers 403 to requests with a foreign Host (DNS rebinding protection). Values of the variables from small.json are never served: they include ACCESS_TOKEN.
Search goes up to 6 levels deep. .git, node_modules, __pycache__, .venv and venv are skipped, and the scanner does not descend into an app it has found.
Styles are loaded from the Tailwind CDN; without internet access the page works, just unstyled.
If RAILWAY_API_TOKEN (or RAILWAY_TOKEN) is set at startup, on every refresh the dashboard asks Railway for the latest deploy of each linked app with the serviceInstance(serviceId, environmentId) { latestDeployment } query. The status is shown as a colored badge:
The dashboard takes the project's load measurements for the past week from Railway (the metrics query: average CPU cores, GB of memory and GB of volumes per hour, including the app's databases) and multiplies the average load by the monthly prices from the Railway docs: $20 per vCPU, $10 per GB of memory, $0.15 per GB of volume. The result reads "≈ $X/mo at current load".
small mcp Runs an MCP server on stdin/stdout, so an AI coding agent can create, deploy and share apps itself: "Deploy this folder and give ivan@company.com access."
Claude Code: claude mcp add small -- small mcp (Windows: claude mcp add small -- cmd /c small mcp).
Cursor (~/.cursor/mcp.json), Claude Desktop, Windsurf and other clients:
{"mcpServers": {"small": {"command": "small", "args": ["mcp"]}}} On Windows use "command": "cmd", "args": ["/c", "small", "mcp"], or "command": "python", "args": ["-m", "small_cli", "mcp"] if small was installed with pip.
RAILWAY_API_TOKEN must be in the environment the agent starts from. After setting it, restart the agent.
small deploy [folder] [--name NAME] [--workspace ID] [--port N] [-m MESSAGE] [--public] [--new] [--no-wait] [--timeout SEC] Flag What it does --name project, service and subdomain name; overrides name from small.json (default: the folder name normalized to a-z0-9-) --workspace workspace ID if the account has several (or RAILWAY_WORKSPACE_ID) --port port for the public domain if the app does not listen on $PORT -m, --message deploy message shown in Railway --public an app without sign-in of its own: deploy it open to anyone, without the gateway (see small gateway) --new create a new project even if the folder has been deployed before --no-wait print the URL right away without waiting for the build --timeout how many seconds to wait for the build (default 900) Progress goes to stderr and the final URL to stdout: URL=$(small deploy). Exit codes: 0 success, 1 error or failed build (the last log lines are printed), 130 interrupted.
small gateway [on [--port N] | off [--yes]] # no subcommand: the status The gateway protects an app that has no sign-in of its own — any language, any framework, a Dockerfile — without changing its code. It is a second service in the app's Railway project, -gateway: Caddy takes every request, and magic-link next to it decides who gets in (Google and Microsoft sign-on, email links, invite links, all small access / small sso / small mail settings). Requests it lets in go on to the app over Railway's private network; the app itself has no public address.
These commands work in the folder of a deployed app, that is, where .small.json is. link, open, logs and destroy take the path as an argument; the others take it as -C folder.
small link [folder] [--as NAME] # print the invite link small open [folder] [--as NAME] # the same + open it in the browser small access [list | add EMAIL|@DOMAIN|NAME | revoke EMAIL|NAME] # who can sign in small access log [-n N] [--json] # who signed in, when and how small access signout EMAIL|@DOMAIN|--all # end their sessions on all devices small sso [google [--client-id ID] | microsoft [--client-id ID] [--tenant T] | off [PROVIDER]] small mail [resend | smtp [--from FROM] [--to TO] | log | off] # emails for sign-in by email small notify [telegram [--chat-id ID] | off] # access requests to Telegram small env [list [--values] | set K=V ... | unset K ...] [--no-deploy] small db [list | add postgres | remove postgres [--yes]] small volume [add [--mount /data]] [--gateway] # persistent disk; no argument shows the status small gateway [on [--port N] | off [--yes]] # sign-in in front of any app (see above) small domain [list | add DOMAIN [--port N] | remove DOMAIN] small sleep [on | off] # sleep mode; no argument shows the status small logs [folder] [--build | --gateway] [-n N] [-f] # log of the latest deploy small destroy [folder] [--yes] # remove from Railway Commands that change the app's variables (access add / revoke / signout, sso, mail, notify, env set / unset, db add / remove), volume add and sleep on / off restart the app once. Add --no-deploy to skip the restart; the change then takes effect on the next deploy.
small link / small open build https:// /?token= .
small access controls who can open the app. There are two ways, and you can combine them.
By address, like sharing a Google Doc. This is the recommended way:
add bob creates a token, adds it to ACCESS_TOKEN as bob:token, restarts the app and prints the link. The link works like a password: anyone it is forwarded to can get in.
revoke bob: after the restart neither bob's link nor the cookie he already has works; everyone else keeps their access.
list shows who has access: addresses and names (tokens are hidden).
Sign-in log. small access log (above). In the raw log (small logs) each sign-in is one JSON line, for example {"message": "[magic-link] signed in with Google: ivan@company.com, ip 203.0.113.7", "magic_link": "sign_in", "method": "google", ...}; Railway's log explorer filters them with @magic_link:sign_in.
small sso sets up sign-in with a work account. Who may sign in is still the access list.
small mail sets how the app sends sign-in emails.
small notify sends access requests to the owner in Telegram.
small domain sets up a custom domain instead of *.up.railway.app.
small volume gives the app a persistent disk (a Railway volume).
small sleep controls Railway's sleep mode (serverless).
small env manages the app's environment variables.
small logs shows the log of the latest deploy.
An optional file in the root of the app folder:
{ "name": "my-custom-app-name", "env": { "OPENAI_API_KEY": "sk-...", "DEBUG": "true" } } Field What it does name Project and service name in Railway, and the desired subdomain .up.railway.app. Normalized to a-z0-9-. The --name flag takes precedence. env The service's environment variables. Names: Latin letters, digits and _, not starting with a digit. Values: strings, numbers or true/false (sent to Railway as strings: "true", "2"). Both fields are optional; any other field is an error (this catches typos like "envs"). An error in the file stops the deploy before any request to Railway.
Name. While the folder is not linked to a service (there is no .small.json), an explicitly set name (from small.json or --name) works as an identifier: if Railway already has a project with that name, for example after a deploy from another computer, small connects to it instead of creating a duplicate. If there is no such project, it is created. If there are several projects with that name, the deploy stops with an error. --new always creates a new project. If the folder is already linked, a new name is not applied, and small warns you about it. To link the folder to another project, delete .small.json.
Variables are written on every small deploy, before the code is uploaded, so the new build sees them right away. small uses variableCollectionUpsert, the batch form of variableUpsert, with replace: false: variables from env are added or updated, and the service's other variables (for example, an ACCESS_TOKEN set in the dashboard) are left alone. A variable removed from env stays in Railway: delete it with small env unset or in the dashboard (service → Variables). Only variable names are printed, never values.
Unless env sets them itself, small deploy also passes the app PUBLIC_URL (when sign-in by email is on, see small access) and OWNER_LANG (small's language, see "Language" above). With an empty env, small deploy writes no variables at all, OWNER_LANG included.
Secrets. The root small.json is not uploaded to Railway with the code. If it holds keys, add it to .gitignore so that it does not end up in git.
small.json and .small.json are different files. You write the first one yourself (settings). small creates the second one: it holds the project and service IDs and the domain.
The project and service IDs and the domain are saved to .small.json in the app folder. The next small deploy ships a new version to the same service and does not create a new project. The file is written right after the project is created or linked, so a failed build does not spawn extra projects when you retry.
The build is done by Railpack, which detects the language by itself. For Python, app.py or main.py is enough (plus requirements.txt for dependencies), and the start command will be python app.py. The app must listen on 0.0.0.0:$PORT.
python -m unittest discover -s tests The tests start a local mock of the Railway API (GraphQL + the upload endpoint) and run the full scenario: first deploy, repeat deploy, failed build, crash, taken domain, several workspaces, wrong token, ignore rules.
Template tests on real frameworks are skipped if the framework is not installed; the rest pass.
small env and small access are tested against the Railway mock:
Dashboard buttons: the "Open via invite link" redirect and its protection against foreign paths, "Logs" without a token, with Railway and with Railway unavailable. Sleep mode and the cost estimate in the dashboard, Railway errors while computing the cost.
small sso, volume, access log and access signout are tested against mocks of Railway, Google and Microsoft: the credential check, a wrong secret that saves nothing, resolving a domain to a tenant, the Streamlit and custom domain redirect URIs, old magic_link code, the volume and its mount path, the access log table, --json and the MCP tool, sign-outs by address, domain and --all, forgetting old sign-outs.
small sleep, db, domain and notify are tested against mocks of Railway and the Telegram Bot API:
small init is tested like this (the streamlit template too):
small dashboard is tested like this (live statuses against the Railway mock: success, partial failure, no network, timeout, wrong token, garbage status, no token in the response):
railway deploy internal-tools magic-link email-login passwordless cli
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.




