A bind can trigger an action once, keep it active after you press the key, or work only while you hold the key. The command determines how it behaves. Auto-run and running while holding a key look almost the same, but they work differently.
- Setup
- Open the F1 console and enter bind key action.
- Auto-run
- bind x forward;sprint
- Bandages
- A bind with craft.add queues bandages for crafting; it doesn’t use them.
- Save
- Enter writecfg when you're done.
- Remove
- bind x clear removes the action assigned to X.
How to Make a Rust Bind Through the F1 Console
Open the console with F1. The command format is bind key action: first the bind command, then the key name, followed by an action or console command. You can set up binds in-game without connecting to a server.
This is the first example in Facepunch’s Rust binds guide. Pressing K kills your character and takes you to the respawn screen unless a suicide cooldown is active. For everyday use, it’s safer to put this command on a key combination.
Two-key bind: what happens when you press Shift+K
Put the key combination in square brackets and join the keys with a plus sign. For the command below, hold left Shift and press K.
The key combination doesn’t override K’s regular bind. If K already has another action assigned, that action will also trigger when you press Shift+K. Using two keys helps prevent accidental presses, but it doesn’t create a separate key.
Multiple actions, hold-to-use binds, and cycling through options
A semicolon separates actions within a bind. A plus sign before an action makes it work while the key is held, and a tilde cycles through actions in sequence. These symbols change how the command works, so copy them along with the rest of the line.
Semicolon and plus: toggle an action or hold it down
In the first example, X starts you running forward until you press forward yourself. In the second, you run only while holding X. These are two options for one key, not two settings to enter together.
You can use the same approach to combine running with jumping, or opening the console with displaying the combat log. In the J bind, there’s a plus sign before each action.
Tilde: change your field of view and flip a held item
The tilde before the first action cycles through the options each time you press the key. The right arrow toggles the held item's orientation, while right Shift and right Control switch your field of view between the values shown.
meta.exec and meta.reset_cycle: multiple commands in one step
meta.exec combines multiple commands into a single toggle. In this admin example, pressing X once enables god mode and sets it to daytime; pressing it again restores the previous settings. You need admin permissions to use it.
meta.reset_cycle resets a cycle assigned to another key. The next line binds X to reset the cycle on Y; it doesn’t create the cycle on Y.
+meta.if_true and +meta.if_false: actions on key press and release
These commands assign different actions to a key press and release. Here, holding the side mouse button mouse4 changes your field of view to 70, and releasing it sets it back to 80. This kind of “zoom” changes your field of view.
Useful binds: auto-run, bandages, and chat messages
Below are ready-to-use binds from the Facepunch guide. Pick the ones you need. The two mouse1 lines use the same right mouse button, so choose one.
- Suicide and respawn
- Auto-run
- Crouch until you press crouch again
- Continuous firing or melee attacks
- Continuous crouched attack
- Different sensitivity while aiming
- Flashlight or laser while aiming
- Craft 2 bandages with the mouse wheel up
- Craft 1 bandage with H
- Disconnect from the server
- Message in global chat
- Message in team chat

The number -2072273936 is the in-game ID for the bandage. You can add a personal reminder to a crafting bind with chat.add; only you will see the message. By contrast, chat.say sends a message to global chat, while chat.teamsay sends it to team chat.
Before adding a bind, check whether you need that key for anything else. Pay special attention to the examples using X, H, and mouse1: choose the option you need rather than entering every line.
Admin binds: freecam, teleporting, and object controls
These examples are for admins. Binding a command to a key doesn’t give you permission to use it on someone else’s server. The ent commands affect the object you’re looking at.
- Freecam
- Teleport to a map marker
- Destroy an object
- Unlock an object's lock
- Lock an object
- Fly
- Hide player-built structures
- Clear weather on the server
If you need the command itself without binding it to a key, check our Rust console commands guide for players and admins.
How to Save Binds and Unbind a Key
After setup, type writecfg in the console. The command saves your binds to the keys.cfg file. Facepunch says the game folder is \Steam\steamapps\common\Rust, but players report the file itself sits in its cfg subfolder.
- Save your bindsEnter writecfg in the console to save your binds to keys.cfg. Open the console and enter
writecfg. - Open the game folderIn your Steam library, right-click Rust and select “Manage,” then “Browse local files.”
- Find keys.cfgOpen the cfg subfolder inside the Rust folder. Players report the file is there.
To unbind X, use either of the options below. Empty quotes and clear remove the bind. To save the change, run writecfg after removing it.
Mouse buttons and common action names
Key names in commands use Latin characters. The Facepunch guide uses the British QWERTY layout. Input issues with Cyrillic and Greek keyboard layouts were fixed in October 2026, but the key names in the examples remain in Latin characters.
| Key | Bind name |
|---|---|
| Left and right mouse buttons | mouse0, mouse1 |
| Mouse wheel click | mouse2 |
| Side mouse buttons | mouse3, mouse4 |
| Mouse wheel up and down | mousewheelup, mousewheeldown |
| Left and right Shift | leftshift, rightshift |
| Left and right Control | leftcontrol, rightcontrol |
| Function keys | f1–f24 |
| Numpad keys | numpad0–numpad9 |
| Up, down, left, and right arrows | uparrow, downarrow, leftarrow, rightarrow |
| Key above Tab | backquote |
| Enter | return |
The action is the part of the line after the key name. To make it work while a key is held, add a plus sign as described above; hoverloot uses a plus sign. Options such as a chat message or gesture name go after the command.
| Action | Name |
|---|---|
| Move forward, backward, left, and right | forward, backward, left, right |
| Jump, crouch, sprint | jump, duck, sprint |
| Use | use |
| Primary attack | attack |
| Aim or throw | attack2 |
| Take half a stack | attack3 |
| Toggle burst fire | firemode |
| Loot by hovering | +hoverloot |
| Voice chat | voice |
| Toggle light | lighttoggle |
| Console and combat log | consoletoggle, combatlog |
| Suicide, disconnect, quit | kill, disconnect, quit |
| Gesture | gesture followed by the gesture name |

Frequently Asked Questions
How do you make a bind in Rust?
Open the F1 console and enter bind key action. For example, bind k kill binds suicide to K. To avoid triggering it by accident, use bind [leftshift+k] kill. You can set up binds without connecting to a server.
How do you set up auto-run in Rust?
Enter bind x forward;sprint in the console. Pressing X starts you running forward until you press forward yourself. The bind bind x +forward;+sprint works only while you hold X.
How do you bind bandages in Rust?
To craft 1 bandage with H, enter bind h "craft.add -2072273936 1". To craft 2 bandages with the mouse wheel up, enter bind mousewheelup "craft.add -2072273936 2". These commands add crafting binds; they don’t use the bandages.
Where are Rust binds saved?
After the writecfg command, your binds are saved to keys.cfg. Players report it's in the cfg subfolder of the Rust folder. To find the folder, open your Steam library, right-click the game, choose Manage, then Browse local files.
How do you remove a bind in Rust?
For X, enter bind x "" or bind x clear. Replace x with the name of another key if needed. Then run writecfg to save the change.
















