Share your existing shell with your team and AI agents.
Run commands in your current shell from the browser or a compatible MCP client. Keep your variables, functions, modules and working directory. No permanent agent required.
Windows PowerShell 5.1, PowerShell 7, bash and sh. cmd is experimental.
Preview: a local PowerShell window and the same session in a browser at Tempsession.sh. Commands sent from the browser and from an MCP client travel to the local PowerShell, run there with a variable that was set before sharing, and their output travels back to the browser.
Commands run in the shell you already have open
Tools that open a separate terminal start with an empty environment. Tempsession.sh loads its client into your current shell instead, so commands from the browser or an MCP client run in that same session.
- PowerShell
- Variables, functions, imported modules and the current location.
- bash and sh
- Variables, functions and the working directory.
- cmd (experimental)
- Environment variables and the working directory.
Existing sign-ins Untested
Sign-ins that a module keeps in the session, for example Connect-MgGraph, should be available to the commands that follow. We have not yet tested this with Microsoft Graph against a real tenant.
Connect a shell
Run one command in the shell you want to share. It loads the client into that shell, prints an approval link and waits until the session is approved.
-
1
Copy the command for your shell
PowerShell, cmd, bash or sh.
-
2
Run it in the shell you want to share
The client connects to Tempsession.sh over HTTPS and prints a link and a code.
-
3
Approve the session in the browser
Check that the code matches and choose how long the session lasts. Approving requires a free account, which you can create with your work email.
-
4
Use the session
Run commands from the browser, share the session with colleagues or connect an MCP client.
irm https://tempsession.sh/connect/v1/ps | iex
Windows PowerShell 5.1 and PowerShell 7.
Check the script before it runs
This variant downloads the script, compares its SHA-256 checksum and only then runs it. Read the script
$__tsFile = "$env:TEMP\tempsession.ps1"; irm https://tempsession.sh/connect/v1/ps -OutFile $__tsFile; if ((Get-FileHash $__tsFile -Algorithm SHA256).Hash -ne '061A78F39B40932407C53B77368DC3B4EA85DFFE11CB9B5CC7015688BBED948D') { Remove-Item $__tsFile; throw 'Tempsession.sh: checksum mismatch' }; . ([scriptblock]::Create((Get-Content -Raw $__tsFile))); Remove-Item $__tsFile; Remove-Variable __tsFile
curl -fsSL -o "%TEMP%\tempsession.cmd" https://tempsession.sh/connect/v1/cmd && call "%TEMP%\tempsession.cmd"
Experimental: output arrives when a command has finished, and running commands cannot be cancelled remotely.
Check the script before it runs
This variant downloads the script, compares its SHA-256 checksum and only then runs it. Read the script
curl -fsSL -o "%TEMP%\tempsession.cmd" https://tempsession.sh/connect/v1/cmd && certutil -hashfile "%TEMP%\tempsession.cmd" SHA256
source <(curl -fsSL https://tempsession.sh/connect/v1/sh)
Needs curl. The checked variant needs sha256sum (Linux).
Check the script before it runs
This variant downloads the script, compares its SHA-256 checksum and only then runs it. Read the script
__ts_f=$(mktemp) && curl -fsSL https://tempsession.sh/connect/v1/sh -o "$__ts_f" && echo "44569577fdcc85cd63317af21af58be3ad598f175d6a41db21535e6789e427a1 $__ts_f" | sha256sum -c --quiet - && source "$__ts_f"; rm -f "$__ts_f"; unset __ts_f
eval "$(curl -fsSL https://tempsession.sh/connect/v1/sh)"
POSIX sh (dash, ash, busybox). Needs curl.
Check the script before it runs
This variant downloads the script, compares its SHA-256 checksum and only then runs it. Read the script
__ts_f=$(mktemp) && curl -fsSL https://tempsession.sh/connect/v1/sh -o "$__ts_f" && echo "44569577fdcc85cd63317af21af58be3ad598f175d6a41db21535e6789e427a1 $__ts_f" | sha256sum -c - >/dev/null && . "$__ts_f"; rm -f "$__ts_f"; unset __ts_f
No credit card No administrator rights required Ctrl+C in the idle shell ends sharing
How it works
The client polls Tempsession.sh over HTTPS for queued commands, runs them in the shell and sends back output and exit code. Browsers and MCP clients only talk to Tempsession.sh. No inbound connection to your computer, no VPN and no port forwarding.
Local shell
Workstation or server
Runs the client script. Commands run in this session.
Tempsession.sh
Server
- Session approval
- Command queue
- Session permissions
- Command history and audit log
Browser
You and your colleagues
MCP client
Signed in as a user
Features
What Tempsession.sh does today, and what is still in development.
Existing shell context
Remote commands run in the session you started the client in. Variables, functions, imported modules and the working directory stay available, so nobody has to rebuild the environment first.
No permanent installation
One command loads the client into the running shell. No agent to deploy, no service and no administrator rights.
Collaborative terminal sessions
People and MCP clients work in the same session. Everyone sees commands, output and status as they happen, and each command shows who sent it.
Temporary session sharing
Share with named colleagues, the whole workspace or a secret link, with permission to watch or to run commands. Access can be removed at any time.
MCP integration
MCP clients list the sessions you have access to, run commands in them and read the output, signed in as you. No dependency on one AI vendor.
Team workspaces
Invite colleagues by email and give them a role. Sign in with Microsoft or email, optionally with two-factor authentication.
Session expiration and revocation
A session ends after the duration chosen at approval, from 15 minutes to 12 hours. Ctrl+C in the idle shell or one click in the browser ends it immediately.
Optional AI command review Coming soon
A language model reviews remote commands before they run and can hold risky ones for a person to decide.
- Real-time command output
- Command attribution
- Sequential command execution
- Granular access permissions
- Audit logs Viewer planned
Collaborative terminal sessions
Everyone with access sees the same session in the browser. Commands from people and MCP clients go into one queue and run in order.
Use your shared shells from AI agents
Tempsession.sh includes an MCP server. Clients that support remote MCP servers over HTTP, such as Claude, ChatGPT, Cursor, VS Code and Claude Code, sign in with your account and can use the sessions you have access to.
Add the server in a terminal, then run /mcp in Claude Code and authenticate.
claude mcp add --transport http tempsession https://tempsession.sh/mcp
Put this into ~/.cursor/mcp.json. Cursor opens the browser to sign in.
{
"mcpServers": {
"tempsession": {
"url": "https://tempsession.sh/mcp"
}
}
}
Put this into .vscode/mcp.json, start the server and approve in the browser.
{
"servers": {
"tempsession": {
"type": "http",
"url": "https://tempsession.sh/mcp"
}
}
}
Add a custom connector with this address, then sign in and approve.
https://tempsession.sh/mcp
MCP tools
-
list-sessionsSessions you have access to, live or ended -
get-sessionOne session and its latest commands -
run-commandRun a command and wait for the result -
get-commandStatus, exit code and output -
cancel-commandRemove a waiting command or interrupt a running one -
end-sessionEnd a session
No approval over MCP
MCP clients cannot connect or approve a shell. A person approves every session in the browser.
Per-user tokens
Each connection uses an OAuth or personal access token of one user, with full or read-only scope. Tokens can be revoked in the settings.
Attributed commands
Commands from MCP clients are recorded with the user and the client name, and the local shell prints both before running them.
Workspaces and access permissions
Every account starts with its own workspace. Invite colleagues to it and decide per session who can watch and who can run commands.
- Invitations by email
- Roles: owner, admin, member and viewer
- Owners and admins see every session in the workspace
- Per session: named colleagues, the whole workspace or a secret link
- Sign in with Microsoft or email, optionally with two-factor authentication
Security model
Commands run with the rights of the user who started the shell. Anyone you allow to run commands can do what that user can do, so access is explicit, limited in time and recorded.
Explicit approval
A signed-in user compares the code shown in the shell and approves the session in the browser. Pairing links can be used once and expire after 10 minutes.
Limited duration
Chosen at approval, from 15 minutes to 12 hours. The session then ends automatically.
Immediate revocation
Ctrl+C in the idle shell or ending the session in the browser stops sharing immediately.
Outbound HTTPS only
The client polls the server. No listening port, no inbound connection and no VPN.
Verifiable client scripts
The client scripts are public. Each shell has a command variant that checks the SHA-256 checksum before running the script.
Attribution and audit log
Each command is stored with its sender and source. Approvals, access changes and commands are written to an append-only audit log.
Restrictive link defaults
By default, shared links allow watching only. Allowing a link to run commands requires a confirmation that names the user and host. Links can be renewed at any time.
Scoped MCP access
MCP tokens belong to one user and can be limited to read-only access. Sessions cannot be approved over MCP.
Endpoint protection
Endpoint protection may block the client. It ran on our Windows 11 test machine with SentinelOne. That does not cover other products or policies.
Supported shells
Tested platforms and the behavior of each shell. cmd support is experimental.
Not tested yet: macOS, PowerShell 7 on Windows and connections through an HTTP proxy.
Use cases
Typical situations in which several people, or a person and an AI agent, need the same shell.
System administrators
Bring a colleague into the shell you are working in, instead of pasting output into a chat and describing the rest.
Managed service providers
Give a technician or an AI agent access to a customer's shell for a fixed time. The session ends automatically.
IT support
The user runs one command and sends you the link it prints. You approve the session and work in their shell, which shows every command you run.
DevOps and cloud engineers
Work on an incident together on the machine that has the context and the credentials, without sharing keys.
Developers
Debug a failing build together in the real environment instead of on screenshots.
Security teams
Remote commands are recorded with their sender, access is granted per session, and every session expires.
Frequently asked questions
Does Tempsession.sh install anything?
No. The command loads a script into the shell you run it in. Nothing is registered as a service or scheduled task. In cmd, the script runs from a file in your temp folder.
Do I need to open a port or set up a VPN?
No. The client connects to Tempsession.sh over HTTPS and polls for commands. There are no inbound connections.
How is this different from a remote terminal?
A remote terminal starts a new shell. Tempsession.sh runs commands in the shell that is already open, so variables, functions, modules and the working directory are available. See the table above for what each shell keeps.
What can other people do in my shell?
What you allow per session: watch, or also run commands. Commands run with your user's rights, and the local shell prints the sender of each command before it runs.
How do I stop sharing?
Press Ctrl+C in the shell while no command is running, or end the session in the browser. A session also ends automatically after the duration chosen at approval.
Can commands ask for input?
No. Remote commands run without a keyboard. Tempsession.sh rejects commands that would wait for input, such as editors, interactive logins or Read-Host, and prompts that still appear fail immediately.
Which MCP clients work?
Clients that connect to remote MCP servers over HTTP. Claude, ChatGPT, Cursor, VS Code and Claude Code sign in with OAuth. Other clients can use a personal access token.
Will my antivirus or EDR allow it?
Possibly not. The PowerShell client avoids techniques that endpoint protection commonly flags, such as compiling code at runtime or reflection. SentinelOne did not block it on our Windows 11 test machine. That is one machine and one policy, not a compatibility guarantee.
Can I check the script before it runs?
Yes. The scripts are public, and each shell has a command variant that verifies the SHA-256 checksum before running the script.
Do I need an account?
Yes, to approve a session. Accounts are free. Sign up with a work email address or a Microsoft account.
Get started
Create a free account, then run the command for your shell and approve the session.