# What do I need to run counterparty cli?

**URL:** <https://forums.counterparty.io/t/what-do-i-need-to-run-counterparty-cli/3838>\
**Category:** Support\
**Created:** [September 28, 2017, 8:06pm UTC](https://forums.counterparty.io/t/what-do-i-need-to-run-counterparty-cli/3838 "2017-09-28T20:06:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![foldinger](https://avatars.discourse-cdn.com/v4/letter/f/8e8cbc/32.png) [@foldinger](https://forums.counterparty.io/u/foldinger)\
**Post date:** [September 28, 2017, 8:06pm UTC](https://forums.counterparty.io/t/what-do-i-need-to-run-counterparty-cli/3838/1 "2017-09-28T20:06:02Z")

</div>

I want to run counterparty cli to send commands to counterparty which wallet does not support like PayBTC. What do I need to run counterparty cli?

I installed python and counterparty-client tools like mentioned here  
[https://counterparty.io/docs/windows/](https://counterparty.io/docs/windows/)

But how do I connect to a counterparty server?

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [September 29, 2017, 10:32am UTC](https://forums.counterparty.io/t/what-do-i-need-to-run-counterparty-cli/3838/2 "2017-09-29T10:32:14Z")

</div>

If you installed Bitcoin Core addrindex, you just need to:

a) Set counterparty client’s Bitcoin Core (back-end) setting to Bitcoin Core addrindex server’s IP (and remember that you need to allow RPC from the client’s IP address, in Bitcoin Core’s bitcoin.conf - see Bitcoin Core docs for that)  
b) Set counterparty client’s counterparty server setting to J-Dog’s public Counterparty Server

```auto
[Default]
counterparty-rpc-connect = public.coindaddy.io
counterparty-rpc-port = 4000 # for mainnet
counterparty-rpc-user = rpc
counterparty-rpc-password = 1234
testnet = 0 # this is not testnet
wallet-name = bitcoincore # Bitcoin Core (no need to change)
wallet-connect = localhost # assuming Bitcoin Core is installed on the same system
wallet-user = rpcUs3r # use value that matches rpcuser in your bitcoin.conf
wallet-password = 1234h4rd2guess # same as rpcpassword in bitcoin.conf

```

Note that you must not (or should not) use public Bitcoin Server with mainnet, because RPC requests travel in clear. You want to have Bitcoin Core on LAN or VPN and under your exclusive control.  
For Counterparty Server it’s mostly OK (from “can someone steal my coins” perspective) because we just use it to look up “stuff” in Counterparty DB, not to operate on wallet, which happens on Bitcoin Core server.

See my write up on that here (but use mainnet if you need mainnet):

> [@Counterparty Client (testnet) on Raspbian](https://forums.counterparty.io/t/counterparty-client-testnet-on-raspbian/1321):
>
> This will work only on Rasberry Pi Model B or better with external USB Drive and 1GB or larger swap file. It is much better to use a public bitcoin server on testnet or an instance that is running someplace else on your home network (it can be a “shared” instance, but it must be patched to support addrindex). In case bitcoind doesn’t run on Raspberry, any model will do as counterparty-client doesn’t need much resources. Install Bitcoin Core from btcdrak This patched Bitcoin Core contains addri…
