<p>Add a file named <code>bitcoin.conf</code> <a href="https://en.bitcoin.it/wiki/Data_directory" rel="nofollow">to your data directory</a> with the following values:</p>

<pre><code> # server=1 tells Bitcoin-QT to accept JSON-RPC commands.
 server=1

 # You must set rpcuser and rpcpassword to secure the JSON-RPC api
 rpcuser=user
 rpcpassword=&lt;a password you make up&gt;
</code></pre>

<p>Tell pyminer to mine at localhost with the password/username combo you just used.</p>

CC BY-SA 3.0
2013-04-23T19:46:36.553Z
I'm on OSX.  Where does the bitcoin.conf file go so Bitcoin-QT will pick it up?
dacracot
CC BY-SA 3.0
2013-04-23T20:07:15.400Z
@dacracot In your data directory. [See this page.](https://en.bitcoin.it/wiki/Data_directory)
Nick ODell
CC BY-SA 3.0
2013-04-23T18:55:31.650Z
2013-04-23T20:08:42.720Z
2013-04-23T20:08:42.720Z
Nick ODell
<p>You just make them up. They just need to match on both ends (the bitcoin program and the mining program).</p>

CC BY-SA 3.0
2013-04-23T05:15:50.333Z
But the Bitcoin-Qt program never asked me to create one.  I looked for it, and found nothing.
dacracot
CC BY-SA 3.0
2013-04-23T05:18:34.720Z
It's in [the documentation](https://en.bitcoin.it/wiki/Running_Bitcoin#Sample_Bitcoin.conf).
David Schwartz
CC BY-SA 3.0
2013-04-24T04:49:03.590Z
While I appreciate your response and that I should RTFM, so much documentation and terminology is rather obtuse for someone new to the process.  A more directed response, as given by Nick ODell, saved me from reading much that was not applicable and solved my problem.
dacracot
CC BY-SA 3.0
2013-04-23T04:39:14.103Z
2013-04-23T04:39:14.103Z
David Schwartz
<p>I downloaded Bitcoin-Qt and synched.  I downloaded pyminer to help me understand the mining process.  But I need a username and password.  Where do I get them for solo mining?</p>

<miner-configuration>
Where do I get my username and password for solo mining?
dacracot
# Where do I get my username and password for solo mining?

(Asked by: username_0 on 2013-04-23)

I downloaded Bitcoin-Qt and synched. I downloaded pyminer to help me understand the mining process. But I need a username and password. Where do I get them for solo mining?

**Tags:** miner-configuration


---

## 2 answers

### Answer by username_1 on 2013-04-23. Score: 2 | Accepted answer

Add a file named `bitcoin.conf` [to your data directory](https://en.bitcoin.it/wiki/Data_directory) with the following values:

```
 # server=1 tells Bitcoin-QT to accept JSON-RPC commands.
 server=1

 # You must set rpcuser and rpcpassword to secure the JSON-RPC api
 rpcuser=user
 rpcpassword=<a password you make up>

```

Tell pyminer to mine at localhost with the password/username combo you just used.

> **Comments:**
> **username_0**: I'm on OSX.  Where does the bitcoin.conf file go so Bitcoin-QT will pick it up?  
> **username_1**: @username_0 In your data directory. [See this page.](https://en.bitcoin.it/wiki/Data_directory)  

---

### Answer by username_2 on 2013-04-23. Score: 2

You just make them up. They just need to match on both ends (the bitcoin program and the mining program).

> **Comments:**
> **username_0**: But the Bitcoin-Qt program never asked me to create one.  I looked for it, and found nothing.  
> **username_2**: It's in [the documentation](https://en.bitcoin.it/wiki/Running_Bitcoin#Sample_Bitcoin.conf).  
> **username_0**: While I appreciate your response and that I should RTFM, so much documentation and terminology is rather obtuse for someone new to the process.  A more directed response, as given by username_1 username_1, saved me from reading much that was not applicable and solved my problem.  

---

