# Most Used Commands In Commune

By [Marco Rodrigues](https://paragraph.com/@macrodrigues) · 2023-10-13

---

[_Commune AI_](https://github.com/commune-ai/commune)_, is a set of development tools that work very similarly to_ [_Bittsensor_](https://bittensor.com/)_. Both aim to achieve a decentralized AI system through Blockchain technology._

The Commune protocol is fully open-source and incentivizes developers to create modular, interoperable modules, that can be used locally or remotely. These so-called modules can wrap up machine-learning tools in structured folders. Enabling AI models to be easily shareable, and participants can be rewarded with the blockchain’s native token ($COM).

Below is a list of the most used commands to start navigating in Commune:

    # see market cap
    c mcap
    
    # sync network
    c sync
    
    # register validator
    c register vali::<validator_name>
    
    # serve validator
    c serve vali::<validator_name>
    
    # stop validator
    c kill vali::<validator_name>
    
    # check if validator is running
    c stats
    
    # restart validator
    c restart_servers vali::<validator_name>
    
    # add a key (aka address)
    c add_key <my_key>
    
    # list keys
    c keys
    
    # check information about keys, validators, modules
    c key_stats <my_key>
    c key_stats vali::<validator_name>
    
    # get key addresse
    c key2address <my_key>
    
    # get addresses of all keys
    c key2address
    
    # you can use the other way around
    c address2key
    
    # remove keys, validators, modules
    c rm_key <my_key>
    c rm_key vali::<validator_name>
    
    # recover key (after creating one it generates a mnemonic, save it)
    c add_key <my_key> mnemonic=<your_key_mnemonic>
    
    # get balance of your key, validator, etc
    c get_balance <my_key>
    c get_balance vali::<validator_name>
    
    # transfer $COM 
    c transfer <my_key> <amount> <other_key_address>
    c transfer <my_key> <amount> <other_key_name>
    
    # stake/delegate to a validator
    c stake <my_key> <amount> <validator_name>
    
    # unstake from validator
    c unstake <my_key> <amount> <validator_name>
    
    # stake from validator's balance
    c stake vali::<validator_name> <amount>
    
    # spread stake among N top validators
    c stake_spread <your_key> N=<n_validators>
    
    # get stake of addresses
    c get_stake <address_key>
    
    # see stake of one key
    c key2stake <my_key>
    
    # see stake for each key
    c key2stake
    
    # total staked
    c my_value
    
    # start a local node
    c start_local_node
    
    # list all the other available functions
    c fns
    

### **Final Notes**

Commune AI is a very young project, and commands might change over time, the best way is to reach their [Discord](https://discord.com/invite/DgjvQXvhqf) channel for all sorts of questions, and the [GitHub](https://github.com/commune-ai/commune) repository. See below other sources:

[https://mirror.xyz/macrodrigues.eth/BA1N8BFr9ZxnCepTrVum7mjNjxMBLAyHJlKCOVvOPqo](https://mirror.xyz/macrodrigues.eth/BA1N8BFr9ZxnCepTrVum7mjNjxMBLAyHJlKCOVvOPqo)

[

How to: Delegating $COM tokens to Validators
--------------------------------------------

How to: Delegating $COM tokens to Validators 1. Stake to Validator: c stake ss58\_adress amount validators\_ss58\_adress 2. We have launched our own validator. If you like our work and the products we ...

https://medium.com

![](https://storage.googleapis.com/papyrus_images/fc873fd753a4476ab92aed3adf13b76a7ccc4e441d1fbed4fc107f258e65b2ca.png)

](https://medium.com/@COMswap/how-to-delegating-com-tokens-to-validators-060ff862b65e)

[

How to: Delegating $COM tokens to Validators
--------------------------------------------

How to: Delegating $COM tokens to Validators 1. Stake to Validator: c stake ss58\_adress amount validators\_ss58\_adress 2. We have launched our own validator. If you like our work and the products we ...

https://medium.com

![](https://storage.googleapis.com/papyrus_images/fc873fd753a4476ab92aed3adf13b76a7ccc4e441d1fbed4fc107f258e65b2ca.png)

](https://medium.com/@COMswap/how-to-delegating-com-tokens-to-validators-060ff862b65e)

[

How to: buy/sell $COM on comswap.io
-----------------------------------

How to: buy/sell $COM on comswap.io Go to comswap.io 2. Register an account 3. Go to the "Account" 4. BUY $COM If you want to buy $COM - connect to Metamask and do a $USDT transfer (erc20) Then ...

https://medium.com

![](https://storage.googleapis.com/papyrus_images/ae94acdab253f8a15b8a5d03d34a98b0ee86a4103a798345f584b4e2421095f8.png)

](https://medium.com/@COMswap/how-to-buy-sell-com-on-comswap-io-2bc83e0da8b5)

---

*Originally published on [Marco Rodrigues](https://paragraph.com/@macrodrigues/most-used-commands-in-commune)*
